[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kontact/plugins/summary
From: Allen Winter <winter () kde ! org>
Date: 2009-02-04 19:08:50
Message-ID: 1233774530.436785.20929.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 921314 by winterz:
provide a 20 pixel wide margin on either side of the summary page.
this has 2 benefits:
1) if you dnd all the summaries from to 1 column, you will still be left with
a column on the other side that is wide enough to see as a dnd target if
decide to dnd a summary back
2) it looks a little nicer
M +8 -3 summaryview_part.cpp
--- trunk/KDE/kdepim/kontact/plugins/summary/summaryview_part.cpp #921313:921314
@@ -206,6 +206,10 @@
QHBoxLayout *layout = new QHBoxLayout( mFrame );
+ int margin = 20; // margin width: insert margins so there is space to dnd a
+ // summary when either column is empty. looks nicer too.
+
+ layout->insertSpacing( 0, margin );
mLeftColumn = new QVBoxLayout();
layout->addLayout( mLeftColumn );
mLeftColumn->setSpacing( KDialog::spacingHint() );
@@ -213,6 +217,7 @@
mRightColumn = new QVBoxLayout();
layout->addLayout( mRightColumn );
mRightColumn->setSpacing( KDialog::spacingHint() );
+ layout->insertSpacing( -1, margin );
QStringList::Iterator strIt;
for ( strIt = mLeftColumnSummaries.begin(); strIt != mLeftColumnSummaries.end(); ++strIt ) {
@@ -383,11 +388,11 @@
void SummaryViewPart::slotAdjustPalette()
{
- mMainWidget->setStyleSheet(
+ mMainWidget->setStyleSheet(
"#mMainWidget { "
" background: palette(base);"
" background-image: url(:/summaryview/kontact_bg.png);"
- " background-position: bottom right;"
+ " background-position: bottom right;"
" background-repeat: no-repeat; }" );
}
@@ -444,7 +449,7 @@
sa->setWidgetResizable( true );
mMainWidget = new QFrame;
- mMainWidget->setObjectName("mMainWidget");
+ mMainWidget->setObjectName( "mMainWidget" );
sa->setWidget( mMainWidget );
mMainWidget->setFocusPolicy( Qt::StrongFocus );
setWidget( sa );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic