Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
cdc37983
Commit
cdc37983
authored
Aug 16, 2022
by
loh tar
Browse files
Make functions non public
...which should not be called from outside
parent
71238562
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemdi.cpp
View file @
cdc37983
...
...
@@ -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
();
}
}
...
...
apps/lib/katemdi.h
View file @
cdc37983
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment