author | zautrix <zautrix> | 2005-06-19 08:37:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-19 08:37:29 (UTC) |
commit | 862c536aec16f9ae02ae81b8487ec13edd014ccc (patch) (side-by-side diff) | |
tree | cdef3fde19950299dc025cfa33c365fb9dada1d9 | |
parent | 98f69fd81c23d99d9fe80326d4bc4d3af23e18ec (diff) | |
download | kdepimpi-862c536aec16f9ae02ae81b8487ec13edd014ccc.zip kdepimpi-862c536aec16f9ae02ae81b8487ec13edd014ccc.tar.gz kdepimpi-862c536aec16f9ae02ae81b8487ec13edd014ccc.tar.bz2 |
fixx
-rw-r--r-- | korganizer/kodaymatrix.cpp | 6 | ||||
-rw-r--r-- | korganizer/kofilterview.cpp | 35 |
2 files changed, 25 insertions, 16 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 30efbf6..3468657 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -930,18 +930,18 @@ void KODayMatrix::paintEvent(QPaintEvent * pevent) int colModulo = (width()-2) % 7; int rowModulo = (height()-2) % 6; //qDebug("col %d row %d ",colModulo,rowModulo ); bool isRTL = KOGlobals::self()->reverseLayout(); // draw background and topleft frame p.fillRect(0,0,width(),height(), mDefaultBackColor); - p.setPen(mDefaultTextColor); - p.drawRect(0, 0, width(), height()); + //p.setPen(mDefaultTextColor); + //p.drawRect(0, 0, width(), height()); int mSelStartT = mSelStart; int mSelEndT = mSelEnd; if ( mSelEndT >= NUMDAYS ) mSelEndT = NUMDAYS-1; // draw selected days with highlighted background color if (mSelStart != NOSELECTION) { bool skip = false; if ( ! mouseDown ) { @@ -1167,16 +1167,18 @@ void KODayMatrix::paintEvent(QPaintEvent * pevent) } // reset bold font to plain font if ( eDays.testBit(i)) { QFont myFont = font(); myFont.setBold(false); p.setFont(myFont); } } + p.setPen(mDefaultTextColor); + p.drawRect(0, 0, width(), height()); } else { //qDebug("NO redraw "); } bitBlt (this, pevent->rect().topLeft(), &myPix , pevent->rect() ,CopyROP); mRedrawNeeded = false; } diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index bb88386..ea53043 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp @@ -224,55 +224,62 @@ void KOCalEditView::readConfig() mStdandardB.clear(); mEnabledB.clear(); mAlarmB.clear(); mROB.clear(); if ( mw ) delete mw; mw = new QWidget ( viewport() ); addChild(mw); - + int ii = 0; mainLayout = new QGridLayout ( mw , 2, 8 ); - mainLayout->setMargin( 3); - mainLayout->setSpacing( 2); + mainLayout->setMargin( 2 ); + mainLayout->setSpacing( 2 ); QPushButton * addBut = new QPushButton ( mw ); addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,0 ); addBut->setPixmap ( SmallIcon("plus")); 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())); addBut->setMaximumWidth( addBut->sizeHint().height() ); 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())); addBut->setMaximumWidth( addBut->sizeHint().height() ); 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())); addBut->setMaximumWidth( addBut->sizeHint().height() ); 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 ); mainLayout->addWidget( addBut,0,6 ); addBut->setPixmap ( SmallIcon("minus")); connect(addBut,SIGNAL(clicked()),SLOT(deleteAll())); addBut->setMaximumWidth( addBut->sizeHint().height() ); #endif @@ -295,18 +302,18 @@ void KOCalEditView::readConfig() if ( kkf->mErrorOnLoad ) cb->setEnabled( false ); connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectCal(int,bool) ) ); KOCalButton* name = new KOCalButton( mw ); name->setNum( kkf->mCalNumber ); name->setText( kkf->mName ); 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 ); cb->setChecked( kkf->isAlarmEnabled ); cb->setNum( kkf->mCalNumber ); connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectCalAlarm(int,bool) ) ); if ( kkf->mErrorOnLoad ) cb->setEnabled( false ); cb = new KOCalCheckButton( mw ); |