1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Replace signals/slots with Q_SIGNALS/Q_SLOTS

This commit is contained in:
David Rosca 2018-02-25 13:33:07 +01:00
parent c36a113219
commit d3ebe40e8f
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
159 changed files with 262 additions and 284 deletions

View File

@ -24,7 +24,7 @@ class AdBlockTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void isMatchingCookieTest_data(); void isMatchingCookieTest_data();
void isMatchingCookieTest(); void isMatchingCookieTest();
void parseRegExpFilterTest_data(); void parseRegExpFilterTest_data();

View File

@ -45,7 +45,7 @@ class CookiesTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();

View File

@ -23,7 +23,7 @@ class LocationBarTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();
void init(); void init();

View File

@ -30,7 +30,7 @@ class PasswordBackendTest : public QObject
public: public:
explicit PasswordBackendTest(); explicit PasswordBackendTest();
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();

View File

@ -24,7 +24,7 @@ class QzToolsTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();

View File

@ -23,7 +23,7 @@ class TabModelTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();

View File

@ -24,7 +24,7 @@ class UpdaterTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void parseVersionsTest_data(); void parseVersionsTest_data();
void parseVersionsTest(); void parseVersionsTest();

View File

@ -23,7 +23,7 @@ class WebTabTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();
void init(); void init();

View File

@ -23,7 +23,7 @@ class WebViewTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();

View File

@ -128,10 +128,10 @@ public:
int count() const {return m_tabs.count(); } int count() const {return m_tabs.count(); }
QRect tabRect(int index) const; QRect tabRect(int index) const;
signals: Q_SIGNALS:
void currentChanged(int); void currentChanged(int);
public slots: public Q_SLOTS:
void emitCurrentIndex(); void emitCurrentIndex();
private: private:
@ -190,12 +190,12 @@ public:
Mode mode() const { return mode_; } Mode mode() const { return mode_; }
QPixmap bgPixmap() { return background_pixmap_; } QPixmap bgPixmap() { return background_pixmap_; }
public slots: public Q_SLOTS:
void SetCurrentIndex(int index); void SetCurrentIndex(int index);
void SetMode(Mode mode); void SetMode(Mode mode);
void SetMode(int mode) { SetMode(Mode(mode)); } void SetMode(int mode) { SetMode(Mode(mode)); }
signals: Q_SIGNALS:
void CurrentChanged(int index); void CurrentChanged(int index);
void ModeChanged(FancyTabWidget::Mode mode); void ModeChanged(FancyTabWidget::Mode mode);
@ -203,7 +203,7 @@ protected:
void paintEvent(QPaintEvent* event); void paintEvent(QPaintEvent* event);
void contextMenuEvent(QContextMenuEvent* e); void contextMenuEvent(QContextMenuEvent* e);
private slots: private Q_SLOTS:
void ShowWidget(int index); void ShowWidget(int index);
private: private:

View File

@ -109,7 +109,7 @@ public:
QSize sizeHint() const override; QSize sizeHint() const override;
QAction* editAction(EditAction action) const; QAction* editAction(EditAction action) const;
public slots: public Q_SLOTS:
void setLeftMargin(int margin); void setLeftMargin(int margin);
void updateTextMargins(); void updateTextMargins();
@ -123,7 +123,7 @@ protected:
QMenu* createContextMenu(); QMenu* createContextMenu();
private slots: private Q_SLOTS:
void updateActions(); void updateActions();
void updatePasteActions(); void updatePasteActions();
void slotDelete(); void slotDelete();
@ -148,7 +148,7 @@ class FALKON_EXPORT SideWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
signals: Q_SIGNALS:
void sizeHintChanged(); void sizeHintChanged();
public: public:

View File

@ -33,7 +33,7 @@ public:
QString originalText(); QString originalText();
void setText(const QString &txt); void setText(const QString &txt);
private slots: private Q_SLOTS:
void copy(); void copy();
protected: protected:

View File

@ -39,7 +39,7 @@ public:
QString title() const; QString title() const;
QString url() const; QString url() const;
private slots: private Q_SLOTS:
void indexChanged(int index); void indexChanged(int index);
private: private:

View File

@ -37,7 +37,7 @@ public:
void showRule(const AdBlockRule* rule) const; void showRule(const AdBlockRule* rule) const;
private slots: private Q_SLOTS:
void addRule(); void addRule();
void removeRule(); void removeRule();

View File

@ -33,7 +33,7 @@ public:
QString id() const override; QString id() const override;
QString name() const override; QString name() const override;
private slots: private Q_SLOTS:
void toggleCustomFilter(); void toggleCustomFilter();
private: private:

View File

@ -87,11 +87,11 @@ public:
static AdBlockManager* instance(); static AdBlockManager* instance();
signals: Q_SIGNALS:
void enabledChanged(bool enabled); void enabledChanged(bool enabled);
void blockedRequestsChanged(const QUrl &url); void blockedRequestsChanged(const QUrl &url);
public slots: public Q_SLOTS:
void setEnabled(bool enabled); void setEnabled(bool enabled);
void showRule(); void showRule();

View File

@ -44,7 +44,7 @@ public:
QString elementHidingRules() const; QString elementHidingRules() const;
QString elementHidingRulesForDomain(const QString &domain) const; QString elementHidingRulesForDomain(const QString &domain) const;
public slots: public Q_SLOTS:
void update(); void update();
void clear(); void clear();

View File

@ -87,15 +87,15 @@ public:
virtual bool removeRule(int offset); virtual bool removeRule(int offset);
virtual const AdBlockRule* replaceRule(AdBlockRule* rule, int offset); virtual const AdBlockRule* replaceRule(AdBlockRule* rule, int offset);
public slots: public Q_SLOTS:
void updateSubscription(); void updateSubscription();
signals: Q_SIGNALS:
void subscriptionChanged(); void subscriptionChanged();
void subscriptionUpdated(); void subscriptionUpdated();
void subscriptionError(const QString &message); void subscriptionError(const QString &message);
protected slots: protected Q_SLOTS:
void subscriptionDownloaded(); void subscriptionDownloaded();
protected: protected:

View File

@ -35,11 +35,11 @@ public:
void showRule(const AdBlockRule* rule); void showRule(const AdBlockRule* rule);
void refresh(); void refresh();
public slots: public Q_SLOTS:
void addRule(); void addRule();
void removeRule(); void removeRule();
private slots: private Q_SLOTS:
void contextMenuRequested(const QPoint &pos); void contextMenuRequested(const QPoint &pos);
void itemChanged(QTreeWidgetItem* item); void itemChanged(QTreeWidgetItem* item);
void copyFilter(); void copyFilter();

View File

@ -34,7 +34,7 @@ public:
void interceptRequest(QWebEngineUrlRequestInfo &request); void interceptRequest(QWebEngineUrlRequestInfo &request);
signals: Q_SIGNALS:
void requestBlocked(const AdBlockedRequest &request); void requestBlocked(const AdBlockedRequest &request);
private: private:

View File

@ -33,11 +33,11 @@ public:
// Emits save() if timer is running. Call this from destructor. // Emits save() if timer is running. Call this from destructor.
void saveIfNecessary(); void saveIfNecessary();
public slots: public Q_SLOTS:
// Tells AutoSaver that change occurred. Signal save() will be emitted after a delay // Tells AutoSaver that change occurred. Signal save() will be emitted after a delay
void changeOccurred(); void changeOccurred();
signals: Q_SIGNALS:
void save(); void save();
private: private:

View File

@ -125,11 +125,11 @@ public:
TabModel *tabModel() const; TabModel *tabModel() const;
TabMruModel *tabMruModel() const; TabMruModel *tabMruModel() const;
signals: Q_SIGNALS:
void startingCompleted(); void startingCompleted();
void aboutToClose(); void aboutToClose();
public slots: public Q_SLOTS:
void goHome(); void goHome();
void goHomeInNewTab(); void goHomeInNewTab();
void goBack(); void goBack();
@ -161,7 +161,7 @@ public slots:
void loadAddress(const QUrl &url); void loadAddress(const QUrl &url);
void showSource(WebView *view = Q_NULLPTR); void showSource(WebView *view = Q_NULLPTR);
private slots: private Q_SLOTS:
void addTab(); void addTab();
void openLocation(); void openLocation();
void openFile(); void openFile();

View File

@ -121,7 +121,7 @@ public:
static bool isTestModeEnabled(); static bool isTestModeEnabled();
static void setTestModeEnabled(bool enabled); static void setTestModeEnabled(bool enabled);
public slots: public Q_SLOTS:
void addNewTab(const QUrl &url = QUrl()); void addNewTab(const QUrl &url = QUrl());
void startPrivateBrowsing(const QUrl &startUrl = QUrl()); void startPrivateBrowsing(const QUrl &startUrl = QUrl());
@ -131,11 +131,11 @@ public slots:
void changeOccurred(); void changeOccurred();
void quitApplication(); void quitApplication();
signals: Q_SIGNALS:
void settingsReloaded(); void settingsReloaded();
void activeWindowChanged(BrowserWindow* window); void activeWindowChanged(BrowserWindow* window);
private slots: private Q_SLOTS:
void postLaunch(); void postLaunch();
void saveSettings(); void saveSettings();

View File

@ -44,10 +44,10 @@ public:
QAction* action(const QString &name) const; QAction* action(const QString &name) const;
public slots: public Q_SLOTS:
void setWindow(BrowserWindow* window); void setWindow(BrowserWindow* window);
private slots: private Q_SLOTS:
// Standard actions // Standard actions
void showAboutDialog(); void showAboutDialog();
void showPreferences(); void showPreferences();

View File

@ -33,7 +33,7 @@ public:
void setWebView(WebView* view); void setWebView(WebView* view);
void setUsernames(const QStringList &usernames); void setUsernames(const QStringList &usernames);
private slots: private Q_SLOTS:
void iconClicked(); void iconClicked();
private: private:

View File

@ -42,7 +42,7 @@ public:
const PasswordEntry &updateData); const PasswordEntry &updateData);
~AutoFillNotification(); ~AutoFillNotification();
private slots: private Q_SLOTS:
void update(); void update();
void remember(); void remember();
void never(); void never();

View File

@ -106,7 +106,7 @@ public:
void delayedExec(); void delayedExec();
public slots: public Q_SLOTS:
void accept(); void accept();
void reject(); void reject();
void showSettingPage(); void showSettingPage();
@ -130,7 +130,7 @@ class AskMasterPassword : public QDialog
public: public:
explicit AskMasterPassword(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = 0); explicit AskMasterPassword(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = 0);
private slots: private Q_SLOTS:
void verifyPassword(); void verifyPassword();
private: private:

View File

@ -95,7 +95,7 @@ private:
QHash<QString, PasswordBackend*> m_backends; QHash<QString, PasswordBackend*> m_backends;
signals: Q_SIGNALS:
void passwordBackendChanged(); void passwordBackendChanged();
}; };

View File

@ -64,11 +64,11 @@ public:
bool removeBookmark(BookmarkItem* item); bool removeBookmark(BookmarkItem* item);
void changeBookmark(BookmarkItem* item); void changeBookmark(BookmarkItem* item);
public slots: public Q_SLOTS:
void setShowOnlyIconsInToolbar(bool state); void setShowOnlyIconsInToolbar(bool state);
void setShowOnlyTextInToolbar(bool state); void setShowOnlyTextInToolbar(bool state);
signals: Q_SIGNALS:
// Item was added to bookmarks // Item was added to bookmarks
void bookmarkAdded(BookmarkItem* item); void bookmarkAdded(BookmarkItem* item);
// Item was removed from bookmarks // Item was removed from bookmarks
@ -79,7 +79,7 @@ signals:
void showOnlyIconsInToolbarChanged(bool show); void showOnlyIconsInToolbarChanged(bool show);
void showOnlyTextInToolbarChanged(bool show); void showOnlyTextInToolbarChanged(bool show);
private slots: private Q_SLOTS:
void saveSettings(); void saveSettings();
private: private:

View File

@ -37,7 +37,7 @@ public:
explicit BookmarksExportDialog(QWidget* parent = 0); explicit BookmarksExportDialog(QWidget* parent = 0);
~BookmarksExportDialog(); ~BookmarksExportDialog();
private slots: private Q_SLOTS:
void setPath(); void setPath();
void exportBookmarks(); void exportBookmarks();

View File

@ -35,7 +35,7 @@ public:
void setWebView(WebView* view); void setWebView(WebView* view);
void checkBookmark(const QUrl &url, bool forceCheck = false); void checkBookmark(const QUrl &url, bool forceCheck = false);
private slots: private Q_SLOTS:
void bookmarksChanged(); void bookmarksChanged();
void speedDialChanged(); void speedDialChanged();

View File

@ -39,7 +39,7 @@ public:
explicit BookmarksImportDialog(QWidget* parent = 0); explicit BookmarksImportDialog(QWidget* parent = 0);
~BookmarksImportDialog(); ~BookmarksImportDialog();
private slots: private Q_SLOTS:
void nextPage(); void nextPage();
void previousPage(); void previousPage();
void setFile(); void setFile();

View File

@ -44,10 +44,10 @@ public:
void setMainWindow(BrowserWindow* window); void setMainWindow(BrowserWindow* window);
public slots: public Q_SLOTS:
void search(const QString &string); void search(const QString &string);
private slots: private Q_SLOTS:
void bookmarkActivated(BookmarkItem* item); void bookmarkActivated(BookmarkItem* item);
void bookmarkCtrlActivated(BookmarkItem* item); void bookmarkCtrlActivated(BookmarkItem* item);
void bookmarkShiftActivated(BookmarkItem* item); void bookmarkShiftActivated(BookmarkItem* item);

View File

@ -35,7 +35,7 @@ public:
void setMainWindow(BrowserWindow* window); void setMainWindow(BrowserWindow* window);
private slots: private Q_SLOTS:
void bookmarkPage(); void bookmarkPage();
void bookmarkAllTabs(); void bookmarkAllTabs();
void showBookmarksManager(); void showBookmarksManager();

View File

@ -70,7 +70,7 @@ public:
BookmarkItem* item(const QModelIndex &index) const; BookmarkItem* item(const QModelIndex &index) const;
private slots: private Q_SLOTS:
void bookmarkChanged(BookmarkItem* item); void bookmarkChanged(BookmarkItem* item);
private: private:
@ -85,13 +85,13 @@ class FALKON_EXPORT BookmarksFilterModel : public QSortFilterProxyModel
public: public:
explicit BookmarksFilterModel(QAbstractItemModel* parent); explicit BookmarksFilterModel(QAbstractItemModel* parent);
public slots: public Q_SLOTS:
void setFilterFixedString(const QString &pattern); void setFilterFixedString(const QString &pattern);
protected: protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
private slots: private Q_SLOTS:
void startFiltering(); void startFiltering();
private: private:

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT BookmarksToolbar : public QWidget
public: public:
explicit BookmarksToolbar(BrowserWindow* window, QWidget* parent = 0); explicit BookmarksToolbar(BrowserWindow* window, QWidget* parent = 0);
private slots: private Q_SLOTS:
void contextMenuRequested(const QPoint &pos); void contextMenuRequested(const QPoint &pos);
void refresh(); void refresh();

View File

@ -45,7 +45,7 @@ public:
QSize sizeHint() const override; QSize sizeHint() const override;
QSize minimumSizeHint() const override; QSize minimumSizeHint() const override;
private slots: private Q_SLOTS:
void createMenu(); void createMenu();
void menuAboutToShow(); void menuAboutToShow();

View File

@ -35,10 +35,10 @@ public:
BookmarkItem* selectedFolder() const; BookmarkItem* selectedFolder() const;
signals: Q_SIGNALS:
void folderSelected(BookmarkItem* folder); void folderSelected(BookmarkItem* folder);
private slots: private Q_SLOTS:
void folderChoosed(); void folderChoosed();
private: private:
@ -57,10 +57,10 @@ public:
BookmarkItem* selectedFolder() const; BookmarkItem* selectedFolder() const;
signals: Q_SIGNALS:
void selectedFolderChanged(BookmarkItem* folder); void selectedFolderChanged(BookmarkItem* folder);
public slots: public Q_SLOTS:
void setSelectedFolder(BookmarkItem* folder); void setSelectedFolder(BookmarkItem* folder);
private: private:

View File

@ -51,10 +51,10 @@ public:
// Expand up to root item // Expand up to root item
void ensureBookmarkVisible(BookmarkItem* item); void ensureBookmarkVisible(BookmarkItem* item);
public slots: public Q_SLOTS:
void search(const QString &string); void search(const QString &string);
signals: Q_SIGNALS:
// Open bookmark in current tab // Open bookmark in current tab
void bookmarkActivated(BookmarkItem* item); void bookmarkActivated(BookmarkItem* item);
// Open bookmark in new tab // Open bookmark in new tab
@ -66,7 +66,7 @@ signals:
// If all bookmarks have been deselected, items is empty // If all bookmarks have been deselected, items is empty
void bookmarksSelected(QList<BookmarkItem*> items); void bookmarksSelected(QList<BookmarkItem*> items);
private slots: private Q_SLOTS:
void indexExpanded(const QModelIndex &parent); void indexExpanded(const QModelIndex &parent);
void indexCollapsed(const QModelIndex &parent); void indexCollapsed(const QModelIndex &parent);

View File

@ -40,7 +40,7 @@ public:
explicit BookmarksWidget(WebView* view, BookmarkItem* bookmark, QWidget* parent = 0); explicit BookmarksWidget(WebView* view, BookmarkItem* bookmark, QWidget* parent = 0);
~BookmarksWidget(); ~BookmarksWidget();
private slots: private Q_SLOTS:
void toggleSpeedDial(); void toggleSpeedDial();
void toggleBookmark(); void toggleBookmark();
void bookmarkEdited(); void bookmarkEdited();

View File

@ -42,7 +42,7 @@ public:
QVector<QNetworkCookie> getAllCookies() const; QVector<QNetworkCookie> getAllCookies() const;
void deleteAllCookies(); void deleteAllCookies();
signals: Q_SIGNALS:
void cookieAdded(const QNetworkCookie &cookie); void cookieAdded(const QNetworkCookie &cookie);
void cookieRemoved(const QNetworkCookie &cookie); void cookieRemoved(const QNetworkCookie &cookie);

View File

@ -40,7 +40,7 @@ public:
explicit CookieManager(QWidget *parent = nullptr); explicit CookieManager(QWidget *parent = nullptr);
~CookieManager(); ~CookieManager();
private slots: private Q_SLOTS:
void currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* parent); void currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* parent);
void remove(); void remove();
void removeAll(); void removeAll();

View File

@ -53,11 +53,11 @@ public:
static QString remaingTimeToString(QTime time); static QString remaingTimeToString(QTime time);
static QString currentSpeedToString(double speed); static QString currentSpeedToString(double speed);
signals: Q_SIGNALS:
void deleteItem(DownloadItem*); void deleteItem(DownloadItem*);
void downloadFinished(bool success); void downloadFinished(bool success);
private slots: private Q_SLOTS:
void parentResized(const QSize &size); void parentResized(const QSize &size);
void finished(); void finished();
void downloadProgress(qint64 received, qint64 total); void downloadProgress(qint64 received, qint64 total);

View File

@ -76,15 +76,15 @@ public:
void setLastDownloadPath(const QString &lastPath) { m_lastDownloadPath = lastPath; } void setLastDownloadPath(const QString &lastPath) { m_lastDownloadPath = lastPath; }
void setLastDownloadOption(const DownloadOption &option) { m_lastDownloadOption = option; } void setLastDownloadOption(const DownloadOption &option) { m_lastDownloadOption = option; }
public slots: public Q_SLOTS:
void show(); void show();
private slots: private Q_SLOTS:
void clearList(); void clearList();
void deleteItem(DownloadItem* item); void deleteItem(DownloadItem* item);
void downloadFinished(bool success); void downloadFinished(bool success);
signals: Q_SIGNALS:
void resized(QSize); void resized(QSize);
void downloadsCountChanged(); void downloadsCountChanged();

View File

@ -46,11 +46,11 @@ public:
int exec(); int exec();
private slots: private Q_SLOTS:
void copyDownloadLink(); void copyDownloadLink();
void emitDialogFinished(int status); void emitDialogFinished(int status);
signals: Q_SIGNALS:
void dialogFinished(int); void dialogFinished(int);
private: private:

View File

@ -68,7 +68,7 @@ public:
void loadSettings(); void loadSettings();
signals: Q_SIGNALS:
void historyEntryAdded(const HistoryEntry &entry); void historyEntryAdded(const HistoryEntry &entry);
void historyEntryDeleted(const HistoryEntry &entry); void historyEntryDeleted(const HistoryEntry &entry);
void historyEntryEdited(const HistoryEntry &before, const HistoryEntry &after); void historyEntryEdited(const HistoryEntry &before, const HistoryEntry &after);

View File

@ -46,10 +46,10 @@ public:
void restoreState(const QByteArray &state); void restoreState(const QByteArray &state);
QByteArray saveState(); QByteArray saveState();
public slots: public Q_SLOTS:
void search(const QString &searchText); void search(const QString &searchText);
private slots: private Q_SLOTS:
void urlActivated(const QUrl &url); void urlActivated(const QUrl &url);
void urlCtrlActivated(const QUrl &url); void urlCtrlActivated(const QUrl &url);
void urlShiftActivated(const QUrl &url); void urlShiftActivated(const QUrl &url);

View File

@ -34,9 +34,7 @@ public:
void setMainWindow(BrowserWindow* window); void setMainWindow(BrowserWindow* window);
signals: private Q_SLOTS:
private slots:
void goBack(); void goBack();
void goForward(); void goForward();
void goHome(); void goHome();

View File

@ -67,9 +67,7 @@ public:
void removeTopLevelIndexes(const QList<QPersistentModelIndex> &indexes); void removeTopLevelIndexes(const QList<QPersistentModelIndex> &indexes);
signals: private Q_SLOTS:
private slots:
void resetHistory(); void resetHistory();
void historyEntryAdded(const HistoryEntry &entry); void historyEntryAdded(const HistoryEntry &entry);
@ -92,17 +90,17 @@ class FALKON_EXPORT HistoryFilterModel : public QSortFilterProxyModel
public: public:
explicit HistoryFilterModel(QAbstractItemModel* parent); explicit HistoryFilterModel(QAbstractItemModel* parent);
public slots: public Q_SLOTS:
void setFilterFixedString(const QString &pattern); void setFilterFixedString(const QString &pattern);
signals: Q_SIGNALS:
void expandAllItems(); void expandAllItems();
void collapseAllItems(); void collapseAllItems();
protected: protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
private slots: private Q_SLOTS:
void startFiltering(); void startFiltering();
private: private:

View File

@ -43,7 +43,7 @@ public:
HeaderView* header() const; HeaderView* header() const;
signals: Q_SIGNALS:
// Open url in current tab // Open url in current tab
void urlActivated(const QUrl &url); void urlActivated(const QUrl &url);
// Open url in new tab // Open url in new tab
@ -53,7 +53,7 @@ signals:
// Context menu signal with point mapped to global // Context menu signal with point mapped to global
void contextMenuRequested(const QPoint &point); void contextMenuRequested(const QPoint &point);
public slots: public Q_SLOTS:
void search(const QString &string); void search(const QString &string);
void removeSelectedItems(); void removeSelectedItems();

View File

@ -44,11 +44,11 @@ public:
bool isVisible() const; bool isVisible() const;
void closePopup(); void closePopup();
public slots: public Q_SLOTS:
void complete(const QString &string); void complete(const QString &string);
void showMostVisited(); void showMostVisited();
signals: Q_SIGNALS:
void showCompletion(const QString &completion, bool completeDomain); void showCompletion(const QString &completion, bool completeDomain);
void showDomainCompletion(const QString &completion); void showDomainCompletion(const QString &completion);
void clearCompletion(); void clearCompletion();
@ -56,7 +56,7 @@ signals:
void cancelRefreshJob(); void cancelRefreshJob();
void loadRequested(const LoadRequest &request); void loadRequested(const LoadRequest &request);
private slots: private Q_SLOTS:
void refreshJobFinished(); void refreshJobFinished();
void slotPopupClosed(); void slotPopupClosed();
void addSuggestions(const QStringList &suggestions); void addSuggestions(const QStringList &suggestions);

View File

@ -39,10 +39,10 @@ public:
QList<QStandardItem*> completions() const; QList<QStandardItem*> completions() const;
QString domainCompletion() const; QString domainCompletion() const;
signals: Q_SIGNALS:
void finished(); void finished();
private slots: private Q_SLOTS:
void slotFinished(); void slotFinished();
void jobCancelled(); void jobCancelled();

View File

@ -48,7 +48,7 @@ public:
bool eventFilter(QObject* object, QEvent* event); bool eventFilter(QObject* object, QEvent* event);
signals: Q_SIGNALS:
void closed(); void closed();
void searchEnginesDialogRequested(); void searchEnginesDialogRequested();
void loadRequested(const LoadRequest &request); void loadRequested(const LoadRequest &request);
@ -58,7 +58,7 @@ signals:
void indexShiftActivated(const QModelIndex &index); void indexShiftActivated(const QModelIndex &index);
void indexDeleteRequested(const QModelIndex &index); void indexDeleteRequested(const QModelIndex &index);
public slots: public Q_SLOTS:
void close(); void close();
private: private:

View File

@ -66,12 +66,12 @@ public:
static SearchEngine searchEngine(); static SearchEngine searchEngine();
static LoadAction loadAction(const QString &text); static LoadAction loadAction(const QString &text);
public slots: public Q_SLOTS:
void setText(const QString &text); void setText(const QString &text);
void showUrl(const QUrl &url); void showUrl(const QUrl &url);
void loadRequest(const LoadRequest &request); void loadRequest(const LoadRequest &request);
private slots: private Q_SLOTS:
void textEdited(const QString &text); void textEdited(const QString &text);
void requestLoadUrl(); void requestLoadUrl();
void pasteAndGo(); void pasteAndGo();

View File

@ -72,7 +72,7 @@ public:
void addToolButton(AbstractButtonInterface *button); void addToolButton(AbstractButtonInterface *button);
void removeToolButton(AbstractButtonInterface *button); void removeToolButton(AbstractButtonInterface *button);
public slots: public Q_SLOTS:
void refreshHistory(); void refreshHistory();
void stop(); void stop();
@ -82,7 +82,7 @@ public slots:
void goForward(); void goForward();
void goForwardInNewTab(); void goForwardInNewTab();
private slots: private Q_SLOTS:
void aboutToShowHistoryNextMenu(); void aboutToShowHistoryNextMenu();
void aboutToShowHistoryBackMenu(); void aboutToShowHistoryBackMenu();
void aboutToShowToolsMenu(); void aboutToShowToolsMenu();

View File

@ -33,7 +33,7 @@ public:
void updateVisibility(); void updateVisibility();
signals: Q_SIGNALS:
void visibilityChangeRequested(); void visibilityChangeRequested();
private: private:

View File

@ -33,11 +33,11 @@ public:
void showStopButton(); void showStopButton();
void showReloadButton(); void showReloadButton();
signals: Q_SIGNALS:
void stopClicked(); void stopClicked();
void reloadClicked(); void reloadClicked();
private slots: private Q_SLOTS:
void updateButton(); void updateButton();
void buttonClicked(); void buttonClicked();

View File

@ -38,7 +38,7 @@ public:
void setWebView(WebView* view); void setWebView(WebView* view);
void setIcon(const QIcon &icon); void setIcon(const QIcon &icon);
private slots: private Q_SLOTS:
void updateIcon(); void updateIcon();
void popupClosed(); void popupClosed();

View File

@ -51,7 +51,7 @@ class FALKON_EXPORT WebSearchBar : public LineEdit
public: public:
explicit WebSearchBar(BrowserWindow* window); explicit WebSearchBar(BrowserWindow* window);
private slots: private Q_SLOTS:
void searchChanged(const ButtonWithMenu::Item &item); void searchChanged(const ButtonWithMenu::Item &item);
void setupEngines(); void setupEngines();

View File

@ -46,7 +46,7 @@ public:
qint64 readData(char *data, qint64 maxSize) Q_DECL_OVERRIDE; qint64 readData(char *data, qint64 maxSize) Q_DECL_OVERRIDE;
qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE; qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE;
private slots: private Q_SLOTS:
void loadPage(); void loadPage();
private: private:

View File

@ -42,7 +42,7 @@ public:
void setText(const QString &text); void setText(const QString &text);
Result result(); Result result();
private slots: private Q_SLOTS:
void buttonClicked(QAbstractButton* button); void buttonClicked(QAbstractButton* button);
private: private:

View File

@ -47,7 +47,7 @@ public:
void showNotification(const QPixmap &icon, const QString &heading, const QString &text); void showNotification(const QPixmap &icon, const QString &heading, const QString &text);
void nativeNotificationPreview(); void nativeNotificationPreview();
private slots: private Q_SLOTS:
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS) #if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
void updateLastId(const QDBusMessage &msg); void updateLastId(const QDBusMessage &msg);
void error(const QDBusError &error); void error(const QDBusError &error);

View File

@ -47,11 +47,9 @@ public:
void hideIconLabels(); void hideIconLabels();
signals: public Q_SLOTS:
public slots: private Q_SLOTS:
private slots:
void chooseIcon(); void chooseIcon();
private: private:

View File

@ -53,7 +53,7 @@ class FALKON_EXPORT OpenSearchEngine : public QObject
{ {
Q_OBJECT Q_OBJECT
signals: Q_SIGNALS:
void imageChanged(); void imageChanged();
void suggestions(const QStringList &suggestions); void suggestions(const QStringList &suggestions);
@ -129,7 +129,7 @@ public:
bool operator==(const OpenSearchEngine &other) const; bool operator==(const OpenSearchEngine &other) const;
bool operator<(const OpenSearchEngine &other) const; bool operator<(const OpenSearchEngine &other) const;
public slots: public Q_SLOTS:
void requestSuggestions(const QString &searchTerm); void requestSuggestions(const QString &searchTerm);
void requestSearchResults(const QString &searchTerm); void requestSearchResults(const QString &searchTerm);
@ -137,7 +137,7 @@ protected:
static QString parseTemplate(const QString &searchTerm, const QString &searchTemplate); static QString parseTemplate(const QString &searchTerm, const QString &searchTemplate);
void loadImage() const; void loadImage() const;
private slots: private Q_SLOTS:
void imageObtained(); void imageObtained();
void suggestionsObtained(); void suggestionsObtained();

View File

@ -38,10 +38,10 @@ public:
explicit SearchEnginesDialog(QWidget* parent = 0); explicit SearchEnginesDialog(QWidget* parent = 0);
~SearchEnginesDialog(); ~SearchEnginesDialog();
public slots: public Q_SLOTS:
void accept() override; void accept() override;
private slots: private Q_SLOTS:
void addEngine(); void addEngine();
void removeEngine(); void removeEngine();
void editEngine(); void editEngine();

View File

@ -90,14 +90,14 @@ public:
static QIcon iconForSearchEngine(const QUrl &url); static QIcon iconForSearchEngine(const QUrl &url);
signals: Q_SIGNALS:
void enginesChanged(); void enginesChanged();
void activeEngineChanged(); void activeEngineChanged();
void defaultEngineChanged(); void defaultEngineChanged();
public slots: public Q_SLOTS:
private slots: private Q_SLOTS:
void engineChangedImage(); void engineChangedImage();
void replyFinished(); void replyFinished();

View File

@ -35,7 +35,7 @@ public:
explicit AboutDialog(QWidget* parent = 0); explicit AboutDialog(QWidget* parent = 0);
~AboutDialog(); ~AboutDialog();
private slots: private Q_SLOTS:
void showAbout(); void showAbout();
private: private:

View File

@ -46,7 +46,7 @@ public:
HistoryManager* historyManager() { return m_historyManager; } HistoryManager* historyManager() { return m_historyManager; }
BookmarksManager* bookmarksManager() { return m_bookmarksManager; } BookmarksManager* bookmarksManager() { return m_bookmarksManager; }
private slots: private Q_SLOTS:
void search(); void search();
void importBookmarks(); void importBookmarks();

View File

@ -37,7 +37,7 @@ public:
static void clearWebDatabases(); static void clearWebDatabases();
static void clearCache(); static void clearCache();
private slots: private Q_SLOTS:
void historyClicked(bool state); void historyClicked(bool state);
void dialogAccepted(); void dialogAccepted();
void optimizeDb(); void optimizeDb();

View File

@ -40,7 +40,7 @@ public:
QIcon getIcon(); QIcon getIcon();
private slots: private Q_SLOTS:
void chooseFile(); void chooseFile();
void searchIcon(const QString &string); void searchIcon(const QString &string);

View File

@ -44,7 +44,7 @@ public:
static bool canShowSiteInfo(const QUrl &url); static bool canShowSiteInfo(const QUrl &url);
private slots: private Q_SLOTS:
void showImagePreview(QTreeWidgetItem *item); void showImagePreview(QTreeWidgetItem *item);
void imagesCustomContextMenuRequested(const QPoint &p); void imagesCustomContextMenuRequested(const QPoint &p);
void copyActionData(); void copyActionData();

View File

@ -51,7 +51,7 @@ public:
QString versionString() const; QString versionString() const;
}; };
private slots: private Q_SLOTS:
void downCompleted(); void downCompleted();
void start(); void start();
void downloadNewVersion(); void downloadNewVersion();

View File

@ -60,14 +60,14 @@ public:
void emitMainWindowCreated(BrowserWindow* window); void emitMainWindowCreated(BrowserWindow* window);
void emitMainWindowDeleted(BrowserWindow* window); void emitMainWindowDeleted(BrowserWindow* window);
signals: Q_SIGNALS:
void webPageCreated(WebPage* page); void webPageCreated(WebPage* page);
void webPageDeleted(WebPage* page); void webPageDeleted(WebPage* page);
void mainWindowCreated(BrowserWindow* window); void mainWindowCreated(BrowserWindow* window);
void mainWindowDeleted(BrowserWindow* window); void mainWindowDeleted(BrowserWindow* window);
private slots: private Q_SLOTS:
void pluginUnloaded(PluginInterface* plugin); void pluginUnloaded(PluginInterface* plugin);
private: private:

View File

@ -89,7 +89,7 @@ public:
// SpeedDial // SpeedDial
SpeedDial* speedDial() { return m_speedDial; } SpeedDial* speedDial() { return m_speedDial; }
public slots: public Q_SLOTS:
void loadSettings(); void loadSettings();
void loadPlugins(); void loadPlugins();
@ -97,7 +97,7 @@ public slots:
protected: protected:
QList<PluginInterface*> m_loadedPlugins; QList<PluginInterface*> m_loadedPlugins;
signals: Q_SIGNALS:
void pluginUnloaded(PluginInterface* plugin); void pluginUnloaded(PluginInterface* plugin);
private: private:

View File

@ -68,12 +68,12 @@ public:
QString backgroundImageSize(); QString backgroundImageSize();
QString initialScript(); QString initialScript();
signals: Q_SIGNALS:
void pagesChanged(); void pagesChanged();
void thumbnailLoaded(const QString &url, const QString &src); void thumbnailLoaded(const QString &url, const QString &src);
void pageTitleLoaded(const QString &url, const QString &title); void pageTitleLoaded(const QString &url, const QString &title);
public slots: public Q_SLOTS:
void changed(const QString &allPages); void changed(const QString &allPages);
void loadThumbnail(const QString &url, bool loadTitle); void loadThumbnail(const QString &url, bool loadTitle);
void removeImageForUrl(const QString &url); void removeImageForUrl(const QString &url);
@ -86,7 +86,7 @@ public slots:
void setSdSize(int count); void setSdSize(int count);
void setSdCentered(bool centered); void setSdCentered(bool centered);
private slots: private Q_SLOTS:
void thumbnailCreated(const QPixmap &pixmap); void thumbnailCreated(const QPixmap &pixmap);
void saveSettings(); void saveSettings();

View File

@ -43,7 +43,7 @@ public:
void startLoading(); void startLoading();
void stopLoading(); void stopLoading();
public slots: public Q_SLOTS:
void showUrl(const QUrl &url); void showUrl(const QUrl &url);
void showSiteIcon(); void showSiteIcon();

View File

@ -40,7 +40,7 @@ public:
bool isFullScreen() Q_DECL_OVERRIDE; bool isFullScreen() Q_DECL_OVERRIDE;
void requestFullScreen(bool enable) Q_DECL_OVERRIDE; void requestFullScreen(bool enable) Q_DECL_OVERRIDE;
public slots: public Q_SLOTS:
void inspectElement(); void inspectElement();
private: private:

View File

@ -44,10 +44,10 @@ public:
QStatusBar* statusBar(); QStatusBar* statusBar();
PopupWebView* webView(); PopupWebView* webView();
public slots: public Q_SLOTS:
void setWindowGeometry(QRect newRect); void setWindowGeometry(QRect newRect);
private slots: private Q_SLOTS:
void titleChanged(); void titleChanged();
void showNotification(QWidget* notif); void showNotification(QWidget* notif);
void showStatusBarMessage(const QString &message); void showStatusBarMessage(const QString &message);

View File

@ -39,10 +39,10 @@ public:
static QStringList defaultLanguage(); static QStringList defaultLanguage();
static QByteArray generateHeader(const QStringList &langs); static QByteArray generateHeader(const QStringList &langs);
public slots: public Q_SLOTS:
void accept(); void accept();
private slots: private Q_SLOTS:
void addLanguage(); void addLanguage();
void removeLanguage(); void removeLanguage();
void upLanguage(); void upLanguage();

View File

@ -39,7 +39,7 @@ public:
void showExceptions(); void showExceptions();
private slots: private Q_SLOTS:
void loadPasswords(); void loadPasswords();
void changePasswordBackend(); void changePasswordBackend();
void showBackendOptions(); void showBackendOptions();

View File

@ -36,7 +36,7 @@ public:
explicit JsOptions(QWidget* parent = 0); explicit JsOptions(QWidget* parent = 0);
~JsOptions(); ~JsOptions();
public slots: public Q_SLOTS:
void accept(); void accept();
private: private:

View File

@ -40,7 +40,7 @@ public:
void load(); void load();
void save(); void save();
private slots: private Q_SLOTS:
void settingsClicked(); void settingsClicked();
void currentChanged(QListWidgetItem* item); void currentChanged(QListWidgetItem* item);
void itemChanged(QListWidgetItem* item); void itemChanged(QListWidgetItem* item);

View File

@ -46,7 +46,7 @@ public:
explicit Preferences(BrowserWindow* window); explicit Preferences(BrowserWindow* window);
~Preferences(); ~Preferences();
private slots: private Q_SLOTS:
void saveSettings(); void saveSettings();
void buttonClicked(QAbstractButton* button); void buttonClicked(QAbstractButton* button);

View File

@ -42,7 +42,7 @@ public:
void save(); void save();
private slots: private Q_SLOTS:
void currentChanged(); void currentChanged();
void showLicense(); void showLicense();

View File

@ -38,7 +38,7 @@ public:
explicit UserAgentDialog(QWidget* parent = 0); explicit UserAgentDialog(QWidget* parent = 0);
~UserAgentDialog(); ~UserAgentDialog();
private slots: private Q_SLOTS:
void addSite(); void addSite();
void removeSite(); void removeSite();
void editSite(); void editSite();

View File

@ -38,7 +38,7 @@ public:
QJsonArray restoreData() const; QJsonArray restoreData() const;
public slots: public Q_SLOTS:
void startNewSession(); void startNewSession();
void restoreSession(const QStringList &excludeWin, const QStringList &excludeTab); void restoreSession(const QStringList &excludeWin, const QStringList &excludeTab);

View File

@ -56,14 +56,14 @@ public:
void backupSavedSessions(); void backupSavedSessions();
void writeCurrentSession(const QString &filePath); void writeCurrentSession(const QString &filePath);
signals: Q_SIGNALS:
void sessionsMetaDataChanged(); void sessionsMetaDataChanged();
public slots: public Q_SLOTS:
void autoSaveLastSession(); void autoSaveLastSession();
void openSessionManagerDialog(); void openSessionManagerDialog();
private slots: private Q_SLOTS:
void aboutToShowSessionsMenu(); void aboutToShowSessionsMenu();
void sessionsDirectoryChanged(); void sessionsDirectoryChanged();
void openSession(QString sessionFilePath = QString(), SessionFlags flags = nullptr); void openSession(QString sessionFilePath = QString(), SessionFlags flags = nullptr);

View File

@ -39,7 +39,7 @@ public:
explicit BookmarksSidebar(BrowserWindow* window, QWidget* parent = 0); explicit BookmarksSidebar(BrowserWindow* window, QWidget* parent = 0);
~BookmarksSidebar(); ~BookmarksSidebar();
private slots: private Q_SLOTS:
void bookmarkActivated(BookmarkItem* item); void bookmarkActivated(BookmarkItem* item);
void bookmarkCtrlActivated(BookmarkItem* item); void bookmarkCtrlActivated(BookmarkItem* item);
void bookmarkShiftActivated(BookmarkItem* item); void bookmarkShiftActivated(BookmarkItem* item);

View File

@ -38,7 +38,7 @@ public:
explicit HistorySideBar(BrowserWindow* window, QWidget* parent = 0); explicit HistorySideBar(BrowserWindow* window, QWidget* parent = 0);
~HistorySideBar(); ~HistorySideBar();
private slots: private Q_SLOTS:
void urlActivated(const QUrl &url); void urlActivated(const QUrl &url);
void urlCtrlActivated(const QUrl &url); void urlCtrlActivated(const QUrl &url);
void urlShiftActivated(const QUrl &url); void urlShiftActivated(const QUrl &url);

View File

@ -44,7 +44,7 @@ public:
void setTitle(const QString &title); void setTitle(const QString &title);
void setWidget(QWidget* widget); void setWidget(QWidget* widget);
public slots: public Q_SLOTS:
void close(); void close();
private: private:
@ -72,7 +72,7 @@ public:
static void addSidebar(const QString &id, SideBarInterface* interface); static void addSidebar(const QString &id, SideBarInterface* interface);
static void removeSidebar(const QString &id); static void removeSidebar(const QString &id);
private slots: private Q_SLOTS:
void slotShowSideBar(); void slotShowSideBar();
private: private:

View File

@ -158,19 +158,19 @@ public:
// Duration of tab slide animation when releasing dragged tab // Duration of tab slide animation when releasing dragged tab
static int slideAnimationDuration(); static int slideAnimationDuration();
public slots: public Q_SLOTS:
void setUpLayout(); void setUpLayout();
void ensureVisible(int index = -1, int xmargin = -1); void ensureVisible(int index = -1, int xmargin = -1);
void setCurrentIndex(int index); void setCurrentIndex(int index);
signals: Q_SIGNALS:
void overFlowChanged(bool overFlow); void overFlowChanged(bool overFlow);
void currentChanged(int index); void currentChanged(int index);
void tabCloseRequested(int index); void tabCloseRequested(int index);
void tabMoved(int from, int to); void tabMoved(int from, int to);
void scrollBarValueChanged(int value); void scrollBarValueChanged(int value);
private slots: private Q_SLOTS:
void setMinimumWidths(); void setMinimumWidths();
void slotCurrentChanged(int index); void slotCurrentChanged(int index);
void slotTabCloseRequested(int index); void slotTabCloseRequested(int index);
@ -264,7 +264,7 @@ public:
static void initStyleBaseOption(QStyleOptionTabBarBase* optTabBase, QTabBar* tabbar, QSize size); static void initStyleBaseOption(QStyleOptionTabBarBase* optTabBase, QTabBar* tabbar, QSize size);
public slots: public Q_SLOTS:
void setCurrentIndex(int index); void setCurrentIndex(int index);
private: private:
@ -328,7 +328,7 @@ public:
bool isOverflowed() const; bool isOverflowed() const;
int tabAt(const QPoint &pos) const; int tabAt(const QPoint &pos) const;
public slots: public Q_SLOTS:
void ensureVisible(int index = -1, int xmargin = 132); void ensureVisible(int index = -1, int xmargin = 132);
void scrollToLeft(int n = 5, QEasingCurve::Type type = QEasingCurve::OutQuad); void scrollToLeft(int n = 5, QEasingCurve::Type type = QEasingCurve::OutQuad);
void scrollToRight(int n = 5, QEasingCurve::Type type = QEasingCurve::OutQuad); void scrollToRight(int n = 5, QEasingCurve::Type type = QEasingCurve::OutQuad);
@ -336,7 +336,7 @@ public slots:
void scrollToRightEdge(); void scrollToRightEdge();
void setUpLayout(); void setUpLayout();
private slots: private Q_SLOTS:
void overFlowChanged(bool overflowed); void overFlowChanged(bool overflowed);
void scrollStart(); void scrollStart();
void updateScrollButtonsState(); void updateScrollButtonsState();

View File

@ -43,10 +43,10 @@ public:
void wheelEvent(QWheelEvent* event); void wheelEvent(QWheelEvent* event);
signals: Q_SIGNALS:
void moveAddTabButton(int posX); void moveAddTabButton(int posX);
private slots: private Q_SLOTS:
void currentTabChanged(int index); void currentTabChanged(int index);
void overflowChanged(bool overflowed); void overflowChanged(bool overflowed);
void closeTabFromButton(); void closeTabFromButton();

View File

@ -43,7 +43,7 @@ public:
explicit TabContextMenu(int index, BrowserWindow *window, Options options = DefaultOptions); explicit TabContextMenu(int index, BrowserWindow *window, Options options = DefaultOptions);
signals: Q_SIGNALS:
void reloadTab(int index); void reloadTab(int index);
void stopTab(int index); void stopTab(int index);
void tabCloseRequested(int index); void tabCloseRequested(int index);
@ -55,7 +55,7 @@ signals:
void loadTab(int index); void loadTab(int index);
void unloadTab(int index); void unloadTab(int index);
private slots: private Q_SLOTS:
void reloadTab() { emit reloadTab(m_clickedTab); } void reloadTab() { emit reloadTab(m_clickedTab); }
void stopTab() { emit stopTab(m_clickedTab); } void stopTab() { emit stopTab(m_clickedTab); }
void closeTab() { emit tabCloseRequested(m_clickedTab); } void closeTab() { emit tabCloseRequested(m_clickedTab); }

View File

@ -46,10 +46,10 @@ public:
static Data *data(); static Data *data();
signals: Q_SIGNALS:
void resized(); void resized();
private slots: private Q_SLOTS:
void showLoadingAnimation(); void showLoadingAnimation();
void hideLoadingAnimation(); void hideLoadingAnimation();

View File

@ -62,17 +62,17 @@ public:
int indexOf(QWidget* widget) const; int indexOf(QWidget* widget) const;
int count() const; int count() const;
signals: Q_SIGNALS:
void currentChanged(int index); void currentChanged(int index);
void tabCloseRequested(int index); void tabCloseRequested(int index);
void pinStateChanged(int index, bool pinned); void pinStateChanged(int index, bool pinned);
public slots: public Q_SLOTS:
void setCurrentIndex(int index); void setCurrentIndex(int index);
void setCurrentWidget(QWidget* widget); void setCurrentWidget(QWidget* widget);
void setUpLayout(); void setUpLayout();
private slots: private Q_SLOTS:
void showTab(int index); void showTab(int index);
void tabWasMoved(int from, int to); void tabWasMoved(int from, int to);
void tabWasRemoved(int index); void tabWasRemoved(int index);

View File

@ -55,7 +55,7 @@ class FALKON_EXPORT MenuTabs : public QMenu
public: public:
explicit MenuTabs(QWidget* parent = 0) : QMenu(parent) {} explicit MenuTabs(QWidget* parent = 0) : QMenu(parent) {}
signals: Q_SIGNALS:
void closeTab(int); void closeTab(int);
private: private:
@ -101,7 +101,7 @@ public:
void detachTab(WebTab* tab); void detachTab(WebTab* tab);
public slots: public Q_SLOTS:
int addView(const LoadRequest &req, const Qz::NewTabPositionFlags &openFlags, bool selectLine = false, bool pinned = false); int addView(const LoadRequest &req, const Qz::NewTabPositionFlags &openFlags, bool selectLine = false, bool pinned = false);
int addView(const LoadRequest &req, const QString &title = tr("New tab"), const Qz::NewTabPositionFlags &openFlags = Qz::NT_SelectedTab, bool selectLine = false, int position = -1, bool pinned = false); int addView(const LoadRequest &req, const QString &title = tr("New tab"), const Qz::NewTabPositionFlags &openFlags = Qz::NT_SelectedTab, bool selectLine = false, int position = -1, bool pinned = false);
int addView(WebTab *tab, const Qz::NewTabPositionFlags &openFlags); int addView(WebTab *tab, const Qz::NewTabPositionFlags &openFlags);
@ -132,13 +132,13 @@ public slots:
void tabBarOverFlowChanged(bool overflowed); void tabBarOverFlowChanged(bool overflowed);
signals: Q_SIGNALS:
void changed(); void changed();
void tabInserted(int index); void tabInserted(int index);
void tabRemoved(int index); void tabRemoved(int index);
void tabMoved(int from, int to); void tabMoved(int from, int to);
private slots: private Q_SLOTS:
void loadSettings(); void loadSettings();
void aboutToShowTabsMenu(); void aboutToShowTabsMenu();

View File

@ -66,7 +66,7 @@ public:
WebView *webView() const; WebView *webView() const;
void setWebView(WebView *view); void setWebView(WebView *view);
signals: Q_SIGNALS:
void activeChanged(bool active); void activeChanged(bool active);
void visibleChanged(bool visible); void visibleChanged(bool visible);
void titleChanged(const QString &title); void titleChanged(const QString &title);

View File

@ -34,11 +34,11 @@ public:
QWidget* widget() { return m_widget; } QWidget* widget() { return m_widget; }
public slots: public Q_SLOTS:
void hide(); void hide();
void startAnimation(); void startAnimation();
private slots: private Q_SLOTS:
void animateFrame(int frame); void animateFrame(int frame);
private: private:

View File

@ -31,11 +31,7 @@ public:
explicit ButtonBox(QWidget* parent = 0); explicit ButtonBox(QWidget* parent = 0);
ButtonRole clickedButtonRole(); ButtonRole clickedButtonRole();
signals: private Q_SLOTS:
public slots:
private slots:
void buttonClicked(QAbstractButton* button); void buttonClicked(QAbstractButton* button);
private: private:

View File

@ -66,18 +66,18 @@ public:
QVector<Item> allItems() { return m_items; } QVector<Item> allItems() { return m_items; }
QMenu* menu() const; QMenu* menu() const;
signals: Q_SIGNALS:
void activeItemChanged(const ButtonWithMenu::Item &item); void activeItemChanged(const ButtonWithMenu::Item &item);
void itemAdded(const ButtonWithMenu::Item &item); void itemAdded(const ButtonWithMenu::Item &item);
void itemRemoved(const ButtonWithMenu::Item &item); void itemRemoved(const ButtonWithMenu::Item &item);
public slots: public Q_SLOTS:
void clearItems(); void clearItems();
void selectNextItem(); void selectNextItem();
void selectPreviousItem(); void selectPreviousItem();
private slots: private Q_SLOTS:
void setCurrentItem(); void setCurrentItem();
void generateMenu(); void generateMenu();

Some files were not shown because too many files have changed in this diff Show More