-rw-r--r-- | korganizer/navigatorbar.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/korganizer/navigatorbar.cpp b/korganizer/navigatorbar.cpp index 7ba97c8..b591232 100644 --- a/korganizer/navigatorbar.cpp +++ b/korganizer/navigatorbar.cpp | |||
@@ -57,25 +57,19 @@ NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *nam | |||
57 | 57 | ||
58 | // Set up the control buttons and date label | 58 | // Set up the control buttons and date label |
59 | mCtrlFrame = new QFrame( this ); | 59 | mCtrlFrame = new QFrame( this ); |
60 | mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised); | 60 | mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised); |
61 | mCtrlFrame->setLineWidth(1); | 61 | mCtrlFrame->setLineWidth(1); |
62 | 62 | ||
63 | topLayout->addWidget( mCtrlFrame ); | 63 | topLayout->addWidget( mCtrlFrame ); |
64 | 64 | ||
65 | QFont tfont = KGlobalSettings::generalFont();//font(); | 65 | QFont tfont = font(); |
66 | int add = 0; | 66 | if ( QApplication::desktop()->width() >= 480 ) |
67 | if ( QApplication::desktop()->width() >= 480 ) { | 67 | tfont.setPointSize(tfont.pointSize()+2); |
68 | add = 2; | ||
69 | if ( QString ( name ) == QString("useBigPixmaps") ) | ||
70 | add += 2; | ||
71 | } | ||
72 | if ( add ) | ||
73 | tfont.setPointSize(tfont.pointSize()+add); | ||
74 | tfont.setBold(true); | 68 | tfont.setBold(true); |
75 | 69 | ||
76 | bool isRTL = KOGlobals::self()->reverseLayout(); | 70 | bool isRTL = KOGlobals::self()->reverseLayout(); |
77 | #ifndef DESKTOP_VERSION | 71 | #ifndef DESKTOP_VERSION |
78 | bool isDesktop = false; | 72 | bool isDesktop = false; |
79 | #else | 73 | #else |
80 | bool isDesktop = true; | 74 | bool isDesktop = true; |
81 | #endif | 75 | #endif |