1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Fix various issues when generating Python bindings

This commit is contained in:
David Rosca 2018-02-26 13:56:43 +01:00
parent ec1e30314c
commit 2fb0da5547
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
5 changed files with 9 additions and 11 deletions

View File

@ -74,7 +74,7 @@ public:
void startExternalManager(const QUrl &url); void startExternalManager(const QUrl &url);
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(DownloadOption option) { m_lastDownloadOption = option; }
public Q_SLOTS: public Q_SLOTS:
void show(); void show();

View File

@ -26,7 +26,7 @@
#include <QMenu> #include <QMenu>
QHash<QString, QPointer<SideBarInterface> > SideBarManager::s_sidebars; QHash<QString, QPointer<SideBarInterface> > s_sidebars;
SideBar::SideBar(SideBarManager* manager, BrowserWindow* window) SideBar::SideBar(SideBarManager* manager, BrowserWindow* window)
: QWidget(window) : QWidget(window)

View File

@ -68,7 +68,6 @@ public:
void sideBarRemoved(const QString &id); void sideBarRemoved(const QString &id);
void closeSideBar(); void closeSideBar();
static QHash<QString, QPointer<SideBarInterface> > s_sidebars;
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);

View File

@ -122,7 +122,6 @@ public:
int pinnedTabsCount() const; int pinnedTabsCount() const;
int normalTabsCount() const; int normalTabsCount() const;
bool isPinned(int index) const; bool isPinned(int index) const;
void setMaxVisiblePinnedTab(int max);
void setFocusPolicy(Qt::FocusPolicy policy); void setFocusPolicy(Qt::FocusPolicy policy);
void setObjectName(const QString &name); void setObjectName(const QString &name);

View File

@ -56,13 +56,13 @@ Q_SIGNALS:
void unloadTab(int index); void unloadTab(int index);
private Q_SLOTS: private Q_SLOTS:
void reloadTab() { emit reloadTab(m_clickedTab); } void reloadTab() { Q_EMIT reloadTab(m_clickedTab); }
void stopTab() { emit stopTab(m_clickedTab); } void stopTab() { Q_EMIT stopTab(m_clickedTab); }
void closeTab() { emit tabCloseRequested(m_clickedTab); } void closeTab() { Q_EMIT tabCloseRequested(m_clickedTab); }
void duplicateTab() { emit duplicateTab(m_clickedTab); } void duplicateTab() { Q_EMIT duplicateTab(m_clickedTab); }
void detachTab() { emit detachTab(m_clickedTab); } void detachTab() { Q_EMIT detachTab(m_clickedTab); }
void loadTab() { emit loadTab(m_clickedTab); } void loadTab() { Q_EMIT loadTab(m_clickedTab); }
void unloadTab() { emit unloadTab(m_clickedTab); } void unloadTab() { Q_EMIT unloadTab(m_clickedTab); }
void pinTab(); void pinTab();
void muteTab(); void muteTab();