-rw-r--r-- | korganizer/kofilterview.cpp | 11 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index a653c18..105028a 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp @@ -152,4 +152,5 @@ KOCalEditView::KOCalEditView(QWidget* parent, setLineWidth ( 1 ); setMidLineWidth ( 1 ); + setFocusPolicy(NoFocus); } @@ -229,5 +230,5 @@ void KOCalEditView::deleteCal( int id ) QString name = kkf->mName; QString file = kkf->mFileName; - if ( KMessageBox::warningContinueCancel( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b><tr> Do you want to remove this calendar from KO/Pi? (The file is not removed, of course!)").arg(name).arg(file) ) != KMessageBox::Continue ) return; + if ( KMessageBox::warningContinueCancel( this, i18n("The calendar<tr><b>%1</b><tr>is displaying file<tr><b>%2</b><tr>Do you want to remove<tr>this calendar from KO/Pi?<tr>(The file is not removed!)").arg(name).arg(file) ) != KMessageBox::Continue ) return; if ( kkf->isStandard ) selectStdCal( 1, true ); @@ -242,5 +243,5 @@ void KOCalEditView::infoCal( int id ) QString file = KOPrefs::instance()->getCalendar( id )->mFileName; if ( KOPrefs::instance()->getCalendar( id )->mErrorOnLoad ) { - if ( KMessageBox::Yes == KMessageBox::questionYesNo( this, i18n("The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>").arg(name).arg(file) ) ) { + if ( KMessageBox::Yes == KMessageBox::questionYesNo( this, i18n("The calendar <tr><b>%1</b><tr> is not loaded! Loading of file <tr><b>%2</b><tr> failed! <tr><b>Try again to load the calendar?</b>").arg(name).arg(file) ) ) { emit calendarAdded( id ); emit needsUpdate(); @@ -249,5 +250,5 @@ void KOCalEditView::infoCal( int id ) } else - KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) ); + KMessageBox::information( this, i18n("The calendar <tr><b>%1</b><tr>is displaying file<tr><b>%2</b>").arg(name).arg(file) ); } void KOCalEditView::readConfig() @@ -267,4 +268,5 @@ void KOCalEditView::readConfig() mainLayout->setSpacing( 2); QPushButton * addBut = new QPushButton ( mw ); + addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,0 ); addBut->setPixmap ( SmallIcon("plus")); @@ -273,4 +275,5 @@ void KOCalEditView::readConfig() addBut = new QPushButton ( mw ); + addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,1 ); addBut->setPixmap ( SmallIcon("eye")); @@ -284,4 +287,5 @@ void KOCalEditView::readConfig() lab->setFixedWidth( 6 ); addBut = new QPushButton ( mw ); + addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,4 ); addBut->setPixmap ( SmallIcon("bell")); @@ -290,4 +294,5 @@ void KOCalEditView::readConfig() addBut = new QPushButton ( mw ); + addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,5 ); addBut->setPixmap ( SmallIcon("pencil")); diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index e2ebdd4..3ab316f 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h @@ -46,4 +46,5 @@ class KOCalButton : public QPushButton SLOT( bottonClicked() )); mNumber = -1; + setFocusPolicy(NoFocus); } void setNum ( int num ) {mNumber = num; } @@ -70,4 +71,5 @@ class KOCalCheckButton : public QCheckBox SLOT( bottonClicked( bool ) )); mNumber = -1; + setFocusPolicy(NoFocus); //setMaximumWidth( 10 ); |