[Digikam-devel] [Bug 115460] opening and closing right pane with tag filter also changes width of left pane and vv
Gilles Caulier
caulier.gilles at free.fr
Fri Mar 31 15:12:59 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=115460
------- Additional Comments From caulier.gilles free fr 2006-03-31 16:12 -------
SVN commit 524908 by cgilles:
digikam from trunk : Bug fix : set properlly main widget size from main interface before to apply sidebar size using QSizePolicy.
CCMAIL: digikam-devel kde org
CCBUGS: 115460
M +6 -13 digikamview.cpp
--- trunk/extragear/graphics/digikam/digikam/digikamview.cpp #524907:524908
@ -72,14 +72,17 @
{
mParent = static_cast<DigikamApp *>(parent);
mAlbumMan = AlbumManager::instance();
- mMainSidebar = new Digikam::Sidebar(this, "Digikam Left Sidebar", Digikam::Sidebar::Left);
+ mMainSidebar = new Sidebar(this, "Digikam Left Sidebar", Sidebar::Left);
mSplitter = new QSplitter(this);
mMainSidebar->setSplitter(mSplitter);
mIconView = new AlbumIconView(mSplitter);
- mRightSidebar = new Digikam::ImagePropertiesSideBarDB(this, "Digikam Right Sidebar", mSplitter,
- Digikam::Sidebar::Right, true, true);
+ QSizePolicy rightSzPolicy(QSizePolicy::Preferred, QSizePolicy::Expanding, 2, 1);
+ mIconView->setSizePolicy(rightSzPolicy);
+
+ mRightSidebar = new ImagePropertiesSideBarDB(this, "Digikam Right Sidebar", mSplitter,
+ Sidebar::Right, true, true);
// To the left.
mFolderView = new AlbumFolderView(this);
@ -181,22 +184,12 @
void DigikamView::loadViewState()
{
- QSizePolicy leftSzPolicy(QSizePolicy::Preferred,
- QSizePolicy::Expanding,
- 1, 1);
- QSizePolicy rightSzPolicy(QSizePolicy::Preferred,
- QSizePolicy::Expanding,
- 2, 1);
KConfig *config = kapp->config();
config->setGroup("MainWindow");
if(config->hasKey("SplitterSizes"))
{
mSplitter->setSizes(config->readIntListEntry("SplitterSizes"));
}
- else
- {
- mIconView->setSizePolicy(rightSzPolicy);
- }
mInitialAlbumID = config->readNumEntry("InitialAlbumID", 0);
}
More information about the Digikam-devel
mailing list