Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joao Oliveira
Okular
Commits
c4ecddd1
Commit
c4ecddd1
authored
Feb 12, 2005
by
Enrico Ros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the "can't hide left panel" bug.
svn path=/trunk/kdegraphics/kpdf/; revision=388679
parent
f8c1e832
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
part.cpp
part.cpp
+8
-8
part.h
part.h
+1
-0
No files found.
part.cpp
View file @
c4ecddd1
...
...
@@ -119,13 +119,13 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
m_watchFile
->
setChecked
(
Settings
::
watchFile
()
);
// widgets: [left panel] | []
QWidget
*
leftPanel
=
new
QWidget
(
m_splitter
);
leftPanel
->
setMinimumWidth
(
90
);
leftPanel
->
setMaximumWidth
(
300
);
QVBoxLayout
*
leftPanelLayout
=
new
QVBoxLayout
(
leftPanel
);
m_
leftPanel
=
new
QWidget
(
m_splitter
);
m_
leftPanel
->
setMinimumWidth
(
90
);
m_
leftPanel
->
setMaximumWidth
(
300
);
QVBoxLayout
*
leftPanelLayout
=
new
QVBoxLayout
(
m_
leftPanel
);
// widgets: [left toolbox/..] | []
m_toolBox
=
new
QToolBox
(
leftPanel
);
m_toolBox
=
new
QToolBox
(
m_
leftPanel
);
leftPanelLayout
->
addWidget
(
m_toolBox
);
// [left toolbox: Table of Contents] | []
...
...
@@ -154,7 +154,7 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
m_toolBox->setItemEnabled( iIdx, false );*/
// widgets: [../miniBarContainer] | []
QWidget
*
miniBarContainer
=
new
QWidget
(
leftPanel
);
QWidget
*
miniBarContainer
=
new
QWidget
(
m_
leftPanel
);
leftPanelLayout
->
addWidget
(
miniBarContainer
);
QVBoxLayout
*
miniBarLayout
=
new
QVBoxLayout
(
miniBarContainer
);
// widgets: [../[spacer/..]] | []
...
...
@@ -575,10 +575,10 @@ void Part::slotNewConfig()
// Left Panel and search Widget
bool
showLeft
=
Settings
::
showLeftPanel
();
if
(
m_
toolBox
->
isShown
()
!=
showLeft
)
if
(
m_
leftPanel
->
isShown
()
!=
showLeft
)
{
// show/hide left qtoolbox
m_
toolBox
->
setShown
(
showLeft
);
m_
leftPanel
->
setShown
(
showLeft
);
// this needs to be hidden explicitly to disable thumbnails gen
m_thumbnailList
->
setShown
(
showLeft
);
}
...
...
part.h
View file @
c4ecddd1
...
...
@@ -121,6 +121,7 @@ private:
// main widgets
QSplitter
*
m_splitter
;
QWidget
*
m_leftPanel
;
QToolBox
*
m_toolBox
;
SearchWidget
*
m_searchWidget
;
ThumbnailList
*
m_thumbnailList
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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