summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-02 19:17:50 (UTC)
committer zautrix <zautrix>2005-07-02 19:17:50 (UTC)
commit8cde05e63c63af0f3ad8048d7160798439125d43 (patch) (side-by-side diff)
tree4f1cca2213626931c0cf63eaa99bda0e31e4d330
parent27c100807f471a63d91ee08bdba3549d3a0cff8c (diff)
downloadkdepimpi-8cde05e63c63af0f3ad8048d7160798439125d43.zip
kdepimpi-8cde05e63c63af0f3ad8048d7160798439125d43.tar.gz
kdepimpi-8cde05e63c63af0f3ad8048d7160798439125d43.tar.bz2
nochn fixx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index 3f08ef8..ff80afc 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -156,25 +156,26 @@ void KOCalEditView::selectCalAlarm(int id ,bool b )
emit needsUpdate();
}
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 ) {
- if (kkf->isReadOnly && kkf->isStandard ) {
- selectStdCal( id );
- break;
- }
- kkf = KOPrefs::instance()->mCalendars.next();
+ }
+ if ( !b ){
+ KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first();
+ while ( kkf ) {
+ if (kkf->isReadOnly && kkf->isStandard ) {
+ selectStdCal( id );
+ break;
}
+ kkf = KOPrefs::instance()->mCalendars.next();
}
}
+
mStdandardB.at(id-1)->setEnabled( !b );
- emit calendarReadonly ( id , b );
- KOPrefs::instance()->getCalendar( id )->isReadOnly = b;
emit needsUpdate();
}
void KOCalEditView::findNewStandard()
@@ -243,23 +244,22 @@ void KOCalEditView::readConfig()
int ii = 0;
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 );
//mainLayout->addWidget( lab,0,++ii );