Commit cdc37983 authored by loh tar's avatar loh tar
Browse files

Make functions non public

...which should not be called from outside
parent 71238562
......@@ -1198,8 +1198,6 @@ MainWindow::MainWindow(QWidget *parentWidget)
for (const auto &sidebar : m_sidebars) {
connect(sidebar.get(), &Sidebar::sigShowPluginConfigPage, this, &MainWindow::sigShowPluginConfigPage);
// all sidebar splitter handles are instantiated, so we can now safely call this
sidebar->updateLastSizeOnResize();
}
}
......
......@@ -245,13 +245,6 @@ public:
QSize sizeHint() const override;
/**
* Monitor resizes using the mouse and update the last size accordingly.
* Only call this when the sidebar has siblings in the splitter (i.e. m_splitter->count() >= 2) to guarantee that resize handles exist
*/
void updateLastSizeOnResize();
public:
ToolView *addToolView(const QIcon &icon, const QString &text, const QString &identifier, ToolView *widget);
bool removeToolView(ToolView *widget);
......@@ -286,8 +279,6 @@ public:
return m_tabBarStyle;
}
void updateLastSize();
void startRestoreSession(KConfigGroup &config);
/**
......@@ -306,7 +297,11 @@ public Q_SLOTS:
// reimplemented, to block a show() call if all sidebars are forced hidden
void setVisible(bool visible) override;
protected:
bool eventFilter(QObject *obj, QEvent *ev) override;
private Q_SLOTS:
void buttonPopupActivate(QAction *);
void readConfig();
void handleCollapse(int pos, int index);
void ownSplitMoved(int pos, int index);
......@@ -314,6 +309,7 @@ private Q_SLOTS:
bool tabBarIsEmpty(MultiTabBar *bar);
private:
void updateLastSize();
int nextId();
bool adjustSplitterSections();
......@@ -327,6 +323,11 @@ private:
*/
void updateButtonStyle(KMultiTabBarTab *button);
/**
* Monitor resizes using the mouse and update the last size accordingly.
*/
void updateLastSizeOnResize();
MultiTabBar *insertTabBar(int idx = -1);
MultiTabBar *tabBar(int idx) const
......@@ -349,12 +350,6 @@ private:
return count();
}
protected:
bool eventFilter(QObject *obj, QEvent *ev) override;
private Q_SLOTS:
void buttonPopupActivate(QAction *);
private:
enum ActionIds {
HideButtonAction = 11,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment