summaryrefslogtreecommitdiffabout
path: root/korganizer/kofilterview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kofilterview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp33
1 files changed, 20 insertions, 13 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index bb88386..ea53043 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -230,7 +230,7 @@ void KOCalEditView::readConfig()
mw = new QWidget ( viewport() );
addChild(mw);
-
+ int ii = 0;
mainLayout = new QGridLayout ( mw , 2, 8 );
- mainLayout->setMargin( 3);
+ mainLayout->setMargin( 2 );
mainLayout->setSpacing( 2);
QPushButton * addBut = new QPushButton ( mw );
@@ -240,8 +240,8 @@ void KOCalEditView::readConfig()
connect(addBut,SIGNAL(clicked()),SLOT(addCal()));
addBut->setMaximumWidth( addBut->sizeHint().height() );
-
+ int max = addBut->sizeHint().height();
addBut = new QPushButton ( mw );
addBut->setFocusPolicy(NoFocus);
- mainLayout->addWidget( addBut,0,1 );
+ mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("eye"));
connect(addBut,SIGNAL(clicked()),SLOT(enableAll()));
@@ -249,11 +249,11 @@ void KOCalEditView::readConfig()
QLabel* lab = new QLabel (i18n(" Calendar \n Resource "), mw );
- mainLayout->addWidget( lab,0,2 );
- lab = new QLabel ( i18n(" "), mw );
- mainLayout->addWidget( lab,0,3 );
- lab->setFixedWidth( 6 );
+ mainLayout->addWidget( lab,0,++ii );
+ //lab = new QLabel ( i18n(" "), mw );
+ //mainLayout->addWidget( lab,0,++ii );
+ //lab->setFixedWidth( 1 );
addBut = new QPushButton ( mw );
addBut->setFocusPolicy(NoFocus);
- mainLayout->addWidget( addBut,0,4 );
+ mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("bell"));
connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm()));
@@ -262,5 +262,5 @@ void KOCalEditView::readConfig()
addBut = new QPushButton ( mw );
addBut->setFocusPolicy(NoFocus);
- mainLayout->addWidget( addBut,0,5 );
+ mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("pencil"));
connect(addBut,SIGNAL(clicked()),SLOT(disableRO()));
@@ -268,5 +268,12 @@ void KOCalEditView::readConfig()
lab = new QLabel ( i18n(" Color "), mw );
- mainLayout->addWidget( lab,0,6 );
+ mainLayout->addWidget( lab,0,++ii );
+ lab = new QLabel ( "", mw );
+ mainLayout->addWidget( lab,0,++ii );
+ lab->setMaximumWidth( max+4 );
+ lab = new QLabel ( "", mw );
+ mainLayout->addWidget( lab,0,++ii );
+
+
#if 0
addBut = new QPushButton ( mw );
@@ -301,6 +308,6 @@ void KOCalEditView::readConfig()
mainLayout->addWidget( name,row,++iii );
connect (name, SIGNAL (selectNum(int)), SLOT ( infoCal(int) ) );
- lab = new QLabel ( i18n(" "), mw );
- mainLayout->addWidget( lab,row,++iii );
+ //lab = new QLabel (" ", mw );
+ //mainLayout->addWidget( lab,row,++iii );
cb = new KOCalCheckButton( mw );
mainLayout->addWidget( cb,row,++iii );mAlarmB.append( cb );