23#include <QWebEnginePage>
42 return !url.isEmpty();
46 return (this->title == other.
title &&
47 this->url == other.
url);
51 explicit SpeedDial(QObject* parent =
nullptr);
56 Page pageForUrl(
const QUrl &url);
57 QUrl urlForShortcut(
int key);
59 void addPage(
const QUrl &url,
const QString &title);
60 void removePage(
const Page &page);
67 QString backgroundImage();
68 QString backgroundImageUrl();
69 QString backgroundImageSize();
70 QString initialScript();
79 void changed(
const QString &allPages);
80 void loadThumbnail(
const QString &url,
bool loadTitle);
81 void removeImageForUrl(
const QString &url);
83 QStringList getOpenFileName();
84 QString urlFromUserInput(
const QString &url);
85 void setBackgroundImage(
const QString &image);
86 void setBackgroundImageSize(
const QString &size);
87 void setPagesInRow(
int count);
88 void setSdSize(
int count);
89 void setSdCentered(
bool centered);
90 void setLockDials(
bool lockDials);
93 void thumbnailCreated(
const QPixmap &pixmap);
97 QString escapeTitle(QString
string)
const;
98 QString escapeUrl(QString url)
const;
100 QString generateAllPages();
102 QString m_initialScript;
103 QString m_thumbnailsDir;
104 QString m_backgroundImage;
105 QString m_backgroundImageUrl;
106 QString m_backgroundImageSize;
108 int m_sizeOfSpeedDials;
116 bool m_regenerateScript;
void pageTitleLoaded(const QString &url, const QString &title)
void thumbnailLoaded(const QString &url, const QString &src)
bool operator==(const Page &other) const