summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index 3f08ef8..ff80afc 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -157,9 +157,12 @@ void KOCalEditView::selectCalAlarm(int id ,bool b )
}
void KOCalEditView::selectReadOnly(int id ,bool b )
{
+
+ emit calendarReadonly ( id , b );
+ KOPrefs::instance()->getCalendar( id )->isReadOnly = b;
if ( KOPrefs::instance()->getCalendar( id )->isStandard && b ) {
findNewStandard();
- } else {
+ }
if ( !b ){
KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first();
while ( kkf ) {
@@ -170,10 +173,8 @@ void KOCalEditView::selectReadOnly(int id ,bool b )
kkf = KOPrefs::instance()->mCalendars.next();
}
}
- }
+
mStdandardB.at(id-1)->setEnabled( !b );
- emit calendarReadonly ( id , b );
- KOPrefs::instance()->getCalendar( id )->isReadOnly = b;
emit needsUpdate();
}
@@ -244,21 +245,20 @@ void KOCalEditView::readConfig()
mainLayout = new QGridLayout ( mw , 2, 8 );
mainLayout->setMargin( 2 );
mainLayout->setSpacing( 2 );
- QPushButton * addBut = new QPushButton ( mw );
- addBut->setFocusPolicy(NoFocus);
- mainLayout->addWidget( addBut,0,0 );
- addBut->setText( "D");
- connect(addBut,SIGNAL(clicked()),SLOT(defaultInfo()));
+ QPushButton * addButT = new QPushButton ( mw );
+ addButT->setFocusPolicy(NoFocus);
+ mainLayout->addWidget( addButT,0,0 );
+ addButT->setText( "D");
+ connect(addButT,SIGNAL(clicked()),SLOT(defaultInfo()));
//addBut->setPixmap ( SmallIcon("greenhook16"));
- addBut->setMaximumWidth( addBut->sizeHint().height() );
- int max = addBut->sizeHint().height();
- addBut = new QPushButton ( mw );
+ QPushButton *addBut = new QPushButton ( mw );
addBut->setFocusPolicy(NoFocus);
mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("eye"));
connect(addBut,SIGNAL(clicked()),SLOT(enableAll()));
- addBut->setMaximumWidth( addBut->sizeHint().height() );
-
+ int max = addBut->sizeHint().height();
+ addBut->setMaximumWidth( max );
+ addButT->setFixedSize( QSize( max, max ) );
QLabel* lab = new QLabel (i18n(" Calendar \n Resource "), mw );
mainLayout->addWidget( lab,0,++ii );
//lab = new QLabel ( i18n(" "), mw );