author | zautrix <zautrix> | 2005-03-21 09:58:16 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-21 09:58:16 (UTC) |
commit | 5b9e0451514d65ab576b51e0f9d3515fa6b9e4e6 (patch) (unidiff) | |
tree | c3e1f114768876675b6ab6463083d03dff321b4e /korganizer/navigatorbar.cpp | |
parent | fd372d97084c401aacb999e89f8bdd94056a3b59 (diff) | |
download | kdepimpi-5b9e0451514d65ab576b51e0f9d3515fa6b9e4e6.zip kdepimpi-5b9e0451514d65ab576b51e0f9d3515fa6b9e4e6.tar.gz kdepimpi-5b9e0451514d65ab576b51e0f9d3515fa6b9e4e6.tar.bz2 |
nf
-rw-r--r-- | korganizer/navigatorbar.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/korganizer/navigatorbar.cpp b/korganizer/navigatorbar.cpp index e4abbf7..1b4ee52 100644 --- a/korganizer/navigatorbar.cpp +++ b/korganizer/navigatorbar.cpp | |||
@@ -173,8 +173,11 @@ QSize NavigatorBar::sizeHint() const | |||
173 | if ( mNextYear->isVisible() ) | 173 | if ( mNextYear->isVisible() ) |
174 | wid += mCurrentButtonMinWid; | 174 | wid += mCurrentButtonMinWid; |
175 | //qDebug("ret %d %d ", wid, mCurrentHei); | 175 | //qDebug("ret %d %d ", wid, mCurrentHei); |
176 | int add = 2; | 176 | return QSize ( wid, mCurrentHei ); |
177 | return QSize ( wid+add, mCurrentHei+add ); | 177 | } |
178 | QSize NavigatorBar::sizeHintTwoButtons() const | ||
179 | { | ||
180 | return QSize ( mCurrentMinWid + 2 * mCurrentButtonMinWid , mCurrentHei ); | ||
178 | } | 181 | } |
179 | void NavigatorBar::resetFont ( QFont fo ) | 182 | void NavigatorBar::resetFont ( QFont fo ) |
180 | { | 183 | { |
@@ -204,8 +207,8 @@ void NavigatorBar::resetFont ( QFont fo ) | |||
204 | mNextMonth->setFixedHeight( size ); | 207 | mNextMonth->setFixedHeight( size ); |
205 | mNextWeek->setFixedHeight( size ); | 208 | mNextWeek->setFixedHeight( size ); |
206 | mNextYear->setFixedHeight ( size ); | 209 | mNextYear->setFixedHeight ( size ); |
207 | mCurrentHei = size; | 210 | mCurrentHei = size +2; |
208 | mCurrentMinWid = maxwidth; | 211 | mCurrentMinWid = maxwidth+2; |
209 | mCurrentButtonMinWid = mPrevYear->sizeHint().width()+2; | 212 | mCurrentButtonMinWid = mPrevYear->sizeHint().width()+2; |
210 | } | 213 | } |
211 | 214 | ||