-rw-r--r-- | korganizer/koagendaview.cpp | 10 | ||||
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 19 | ||||
-rw-r--r-- | libkdepim/categoryeditdialog.cpp | 2 | ||||
-rw-r--r-- | libkdepim/categoryselectdialog.cpp | 8 |
4 files changed, 28 insertions, 11 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 3aae076..749204b 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -373,10 +373,16 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | |||
373 | mDummyAllDayLeft = new QVBox( mAllDayFrame ); | 373 | mDummyAllDayLeft = new QVBox( mAllDayFrame ); |
374 | 374 | ||
375 | mExpandButton = new QPushButton(mDummyAllDayLeft); | 375 | mExpandButton = new QPushButton(mDummyAllDayLeft); |
376 | mExpandButton->setPixmap( mNotExpandedPixmap ); | 376 | mExpandButton->setPixmap( mNotExpandedPixmap ); |
377 | mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, | 377 | int widebut = mExpandButton->sizeHint().width(); |
378 | QSizePolicy::Fixed ) ); | 378 | if ( QApplication::desktop()->width() < 480 ) |
379 | widebut = widebut*2; | ||
380 | else | ||
381 | widebut = (widebut*3) / 2; | ||
382 | //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, | ||
383 | // QSizePolicy::Fixed ) ); | ||
384 | mExpandButton->setFixedSize( widebut, widebut); | ||
379 | connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); | 385 | connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); |
380 | mExpandButton->setFocusPolicy(NoFocus); | 386 | mExpandButton->setFocusPolicy(NoFocus); |
381 | mAllDayAgenda = new KOAgenda(1,mAllDayFrame); | 387 | mAllDayAgenda = new KOAgenda(1,mAllDayFrame); |
382 | mAllDayAgenda->setFocusPolicy(NoFocus); | 388 | mAllDayAgenda->setFocusPolicy(NoFocus); |
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 0fea9be..59b864c 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp | |||
@@ -38,9 +38,9 @@ | |||
38 | #endif | 38 | #endif |
39 | #include "koglobals.h" | 39 | #include "koglobals.h" |
40 | #include "koprefs.h" | 40 | #include "koprefs.h" |
41 | #include "koeventviewerdialog.h" | 41 | #include "koeventviewerdialog.h" |
42 | 42 | #include <qstylesheet.h> | |
43 | #include "kowhatsnextview.h" | 43 | #include "kowhatsnextview.h" |
44 | using namespace KOrg; | 44 | using namespace KOrg; |
45 | 45 | ||
46 | void WhatsNextTextBrowser::setSource(const QString& n) | 46 | void WhatsNextTextBrowser::setSource(const QString& n) |
@@ -67,9 +67,19 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, QWidget *parent, | |||
67 | // mDateLabel->setAlignment(AlignCenter); | 67 | // mDateLabel->setAlignment(AlignCenter); |
68 | setFont( KOPrefs::instance()->mWhatsNextFont ); | 68 | setFont( KOPrefs::instance()->mWhatsNextFont ); |
69 | mView = new WhatsNextTextBrowser(this); | 69 | mView = new WhatsNextTextBrowser(this); |
70 | connect(mView,SIGNAL(showIncidence(const QString &)),SLOT(showIncidence(const QString &))); | 70 | connect(mView,SIGNAL(showIncidence(const QString &)),SLOT(showIncidence(const QString &))); |
71 | 71 | QStyleSheet* stsh = mView->styleSheet(); | |
72 | QStyleSheetItem * style ; | ||
73 | |||
74 | style = stsh->item ("h2" ); | ||
75 | if ( style ) { | ||
76 | style->setMargin(QStyleSheetItem::MarginAll,0); | ||
77 | } | ||
78 | style = stsh->item ("table" ); | ||
79 | if ( style ) { | ||
80 | style->setMargin(QStyleSheetItem::MarginAll,0); | ||
81 | } | ||
72 | mEventViewer = 0; | 82 | mEventViewer = 0; |
73 | 83 | ||
74 | QBoxLayout *topLayout = new QVBoxLayout(this); | 84 | QBoxLayout *topLayout = new QVBoxLayout(this); |
75 | // topLayout->addWidget(mDateLabel); | 85 | // topLayout->addWidget(mDateLabel); |
@@ -143,9 +153,9 @@ void KOWhatsNextView::updateView() | |||
143 | KIconLoader kil("korganizer"); | 153 | KIconLoader kil("korganizer"); |
144 | QString ipath;// = new QString(); | 154 | QString ipath;// = new QString(); |
145 | // kil.loadIcon("korganizer",KIcon::NoGroup,32,KIcon::DefaultState,&ipath); | 155 | // kil.loadIcon("korganizer",KIcon::NoGroup,32,KIcon::DefaultState,&ipath); |
146 | //<big><big><strong>" + date + "</strong></big></big>\n"; | 156 | //<big><big><strong>" + date + "</strong></big></big>\n"; |
147 | mText = "<table width=\"100%\">\n"; | 157 | mText = "<qt><table width=\"100%\">\n"; |
148 | //mText += "<tr bgcolor=\"#3679AD\"><td><h2>"; | 158 | //mText += "<tr bgcolor=\"#3679AD\"><td><h2>"; |
149 | #ifdef DESKTOP_VERSION | 159 | #ifdef DESKTOP_VERSION |
150 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>"; | 160 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>"; |
151 | #else | 161 | #else |
@@ -325,9 +335,9 @@ void KOWhatsNextView::updateView() | |||
325 | } | 335 | } |
326 | if (replys > 0 ) mText += "</table>\n"; | 336 | if (replys > 0 ) mText += "</table>\n"; |
327 | 337 | ||
328 | 338 | ||
329 | mText += "</td></tr>\n</table>\n"; | 339 | mText += "</td></tr>\n</table></qt>\n"; |
330 | 340 | ||
331 | mView->setText(mText); | 341 | mView->setText(mText); |
332 | mView->setFocus(); | 342 | mView->setFocus(); |
333 | 343 | ||
@@ -339,8 +349,9 @@ void KOWhatsNextView::updateView() | |||
339 | // test->resize( 300, 400 ); | 349 | // test->resize( 300, 400 ); |
340 | // test->show(); | 350 | // test->show(); |
341 | // mView->setBackgroundMode(FixedPixmap ); | 351 | // mView->setBackgroundMode(FixedPixmap ); |
342 | // mView->setBackgroundPixmap ( bPix ); | 352 | // mView->setBackgroundPixmap ( bPix ); |
353 | qDebug("%s ",mText.latin1()); | ||
343 | } | 354 | } |
344 | 355 | ||
345 | void KOWhatsNextView::appendDay( int i, QDate eventDate ) | 356 | void KOWhatsNextView::appendDay( int i, QDate eventDate ) |
346 | { | 357 | { |
diff --git a/libkdepim/categoryeditdialog.cpp b/libkdepim/categoryeditdialog.cpp index f719c31..a19900f 100644 --- a/libkdepim/categoryeditdialog.cpp +++ b/libkdepim/categoryeditdialog.cpp | |||
@@ -57,8 +57,10 @@ CategoryEditDialog::CategoryEditDialog( KPimPrefs *prefs, QWidget* parent, | |||
57 | mButtonModify->setEnabled(categoriesExist); | 57 | mButtonModify->setEnabled(categoriesExist); |
58 | mButtonAdd->setEnabled(!mEdit->text().isEmpty()); | 58 | mButtonAdd->setEnabled(!mEdit->text().isEmpty()); |
59 | if ( QApplication::desktop()->width() > 460 ) | 59 | if ( QApplication::desktop()->width() > 460 ) |
60 | resize( 300, 360 ); | 60 | resize( 300, 360 ); |
61 | else | ||
62 | showMaximized(); | ||
61 | } | 63 | } |
62 | 64 | ||
63 | /* | 65 | /* |
64 | * Destroys the object and frees any allocated resources | 66 | * Destroys the object and frees any allocated resources |
diff --git a/libkdepim/categoryselectdialog.cpp b/libkdepim/categoryselectdialog.cpp index 40b46cf..7df9154 100644 --- a/libkdepim/categoryselectdialog.cpp +++ b/libkdepim/categoryselectdialog.cpp | |||
@@ -45,14 +45,12 @@ CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, QWidget* parent, | |||
45 | 45 | ||
46 | setCategories(); | 46 | setCategories(); |
47 | 47 | ||
48 | connect(mButtonEdit,SIGNAL(clicked()),this, SLOT(editCategoriesDialog())); | 48 | connect(mButtonEdit,SIGNAL(clicked()),this, SLOT(editCategoriesDialog())); |
49 | if ( qApp->desktop()->height() < 321 ) | ||
50 | setMaximumHeight( QApplication::desktop()->height() - 50 ); | ||
51 | else | ||
52 | setMaximumHeight( QApplication::desktop()->height() - 80 ); | ||
53 | if ( QApplication::desktop()->width() > 460 ) | 49 | if ( QApplication::desktop()->width() > 460 ) |
54 | resize( 260, 360 ); | 50 | resize( 300, 360 ); |
51 | else | ||
52 | showMaximized(); | ||
55 | } | 53 | } |
56 | void CategorySelectDialog::editCategoriesDialog() | 54 | void CategorySelectDialog::editCategoriesDialog() |
57 | { | 55 | { |
58 | KPIM::CategoryEditDialog* ced = new KPIM::CategoryEditDialog(mPrefs,this ); | 56 | KPIM::CategoryEditDialog* ced = new KPIM::CategoryEditDialog(mPrefs,this ); |