author | zautrix <zautrix> | 2005-08-22 20:51:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-22 20:51:25 (UTC) |
commit | cfda06568cbd0e67ba0188f00622b348b57b27c0 (patch) (unidiff) | |
tree | 925a3d4553eae2946cb8c588abae872b78d494f2 /kmicromail | |
parent | cb425b4c2d027d49f964368e94a52d3ba5e6aa31 (diff) | |
download | kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.zip kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.tar.gz kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.tar.bz2 |
fixxx
-rw-r--r-- | kmicromail/composemail.cpp | 5 | ||||
-rw-r--r-- | kmicromail/mailistviewitem.cpp | 3 | ||||
-rw-r--r-- | kmicromail/mailistviewitem.h | 4 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 16 | ||||
-rw-r--r-- | kmicromail/mainwindow.h | 4 |
5 files changed, 19 insertions, 13 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 7b609fc..4bc4441 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -53,6 +53,7 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo | |||
53 | : ComposeMailUI( parent, name, modal ) | 53 | : ComposeMailUI( parent, name, modal ) |
54 | { | 54 | { |
55 | 55 | ||
56 | topLevelWidget()->setCaption( i18n("Compose mail - Click OK to send ->") ); | ||
56 | mPickLineEdit = 0; | 57 | mPickLineEdit = 0; |
57 | mEncoding = KOPrefs::instance()->mCurrentCodeName; | 58 | mEncoding = KOPrefs::instance()->mCurrentCodeName; |
58 | //managed from opiemail now | 59 | //managed from opiemail now |
@@ -223,7 +224,7 @@ void ComposeMail::saveAsDraft() | |||
223 | } | 224 | } |
224 | void ComposeMail::clearStatus() | 225 | void ComposeMail::clearStatus() |
225 | { | 226 | { |
226 | topLevelWidget()->setCaption( i18n("Compose mail") ); | 227 | topLevelWidget()->setCaption( i18n("Compose mail - Click OK to send ->") ); |
227 | } | 228 | } |
228 | void ComposeMail::setStatus( QString status ) | 229 | void ComposeMail::setStatus( QString status ) |
229 | { | 230 | { |
@@ -424,7 +425,7 @@ void ComposeMail::accept() | |||
424 | } | 425 | } |
425 | 426 | ||
426 | if (! checkBoxLater->isChecked() ) { | 427 | if (! checkBoxLater->isChecked() ) { |
427 | int yesno = QMessageBox::warning(0,i18n("Stop editing message"), | 428 | int yesno = QMessageBox::warning(0, subjectLine->text().left ( 25 ), |
428 | i18n("Send this message?"), | 429 | i18n("Send this message?"), |
429 | i18n("Yes"), | 430 | i18n("Yes"), |
430 | i18n("Cancel")); | 431 | i18n("Cancel")); |
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp index 5119744..15fa148 100644 --- a/kmicromail/mailistviewitem.cpp +++ b/kmicromail/mailistviewitem.cpp | |||
@@ -7,7 +7,7 @@ | |||
7 | //#include <qpe/resource.h> | 7 | //#include <qpe/resource.h> |
8 | 8 | ||
9 | MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item ) | 9 | MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item ) |
10 | :QListViewItem(parent,item),mail_data() | 10 | :KListViewItem(parent,item),mail_data() |
11 | { | 11 | { |
12 | } | 12 | } |
13 | 13 | ||
@@ -43,6 +43,7 @@ void MailListViewItem::showEntry() | |||
43 | break; | 43 | break; |
44 | 44 | ||
45 | } | 45 | } |
46 | |||
46 | setText(3, fsize ); | 47 | setText(3, fsize ); |
47 | //qDebug("fsize *%s* ",fsize.latin1() ); | 48 | //qDebug("fsize *%s* ",fsize.latin1() ); |
48 | //qDebug("fsort *%s* ",fsort.latin1() ); | 49 | //qDebug("fsort *%s* ",fsort.latin1() ); |
diff --git a/kmicromail/mailistviewitem.h b/kmicromail/mailistviewitem.h index 0fd44d3..b409c9d 100644 --- a/kmicromail/mailistviewitem.h +++ b/kmicromail/mailistviewitem.h | |||
@@ -2,11 +2,11 @@ | |||
2 | #ifndef __MAILLISTVIEWITEM_H | 2 | #ifndef __MAILLISTVIEWITEM_H |
3 | #define __MAILLISTVIEWITEM_H | 3 | #define __MAILLISTVIEWITEM_H |
4 | 4 | ||
5 | #include <qlistview.h> | 5 | #include <klistview.h> |
6 | #include <libmailwrapper/mailtypes.h> | 6 | #include <libmailwrapper/mailtypes.h> |
7 | #include <libmailwrapper/maildefines.h> | 7 | #include <libmailwrapper/maildefines.h> |
8 | 8 | ||
9 | class MailListViewItem:public QListViewItem | 9 | class MailListViewItem:public KListViewItem |
10 | { | 10 | { |
11 | public: | 11 | public: |
12 | MailListViewItem(QListView * parent, MailListViewItem * after ); | 12 | MailListViewItem(QListView * parent, MailListViewItem * after ); |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index e3c5ec3..82a915e 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -23,6 +23,7 @@ extern QStatusBar* globalSstatusBarMainWindow; | |||
23 | #include "mainwindow.h" | 23 | #include "mainwindow.h" |
24 | #include "mailistviewitem.h" | 24 | #include "mailistviewitem.h" |
25 | #include <KDGanttMinimizeSplitter.h> | 25 | #include <KDGanttMinimizeSplitter.h> |
26 | #include <libkdepim/kpimglobalprefs.h> | ||
26 | 27 | ||
27 | #include "koprefs.h" | 28 | #include "koprefs.h" |
28 | 29 | ||
@@ -165,7 +166,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
165 | 166 | ||
166 | //layout->addWidget( folderView ); | 167 | //layout->addWidget( folderView ); |
167 | 168 | ||
168 | mailView = new QListView( split ); | 169 | mailView = new KListView( split ); |
169 | mailView->addColumn( i18n( " " ) ); | 170 | mailView->addColumn( i18n( " " ) ); |
170 | mailView->addColumn( i18n( "Subject" ),QListView::Manual ); | 171 | mailView->addColumn( i18n( "Subject" ),QListView::Manual ); |
171 | mailView->addColumn( i18n( "Sender" ),QListView::Manual ); | 172 | mailView->addColumn( i18n( "Sender" ),QListView::Manual ); |
@@ -178,7 +179,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
178 | mailView->setRootIsDecorated( false ); | 179 | mailView->setRootIsDecorated( false ); |
179 | statusWidget = new StatusWidget( wrapperBox ); | 180 | statusWidget = new StatusWidget( wrapperBox ); |
180 | statusWidget->hide(); | 181 | statusWidget->hide(); |
181 | 182 | mailView->setSelectionMode( QListView::Multi ); | |
183 | mailView->setMultiSelection( true); | ||
184 | mailView->setAlternateBackground(KPimGlobalPrefs::instance()->mAlternateColor ); | ||
182 | //layout->addWidget( mailView ); | 185 | //layout->addWidget( mailView ); |
183 | //layout->setStretchFactor( folderView, 1 ); | 186 | //layout->setStretchFactor( folderView, 1 ); |
184 | //layout->setStretchFactor( mailView, 2 ); | 187 | //layout->setStretchFactor( mailView, 2 ); |
@@ -211,7 +214,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
211 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); | 214 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); |
212 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); | 215 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); |
213 | //mailView->setMultiSelection ( true ); | 216 | //mailView->setMultiSelection ( true ); |
214 | mailView->setSelectionMode( QListView::Extended ); | 217 | //mailView->setSelectionMode( QListView::Extended ); |
215 | QValueList<int> list; | 218 | QValueList<int> list; |
216 | int fw = 100; | 219 | int fw = 100; |
217 | if ( QApplication::desktop()->width() > 320 ) | 220 | if ( QApplication::desktop()->width() > 320 ) |
@@ -219,7 +222,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
219 | list.append( fw ); | 222 | list.append( fw ); |
220 | list.append( 100 ); | 223 | list.append( 100 ); |
221 | split->setSizes( list ); | 224 | split->setSizes( list ); |
222 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 225 | QTimer::singleShot( 100, this, SLOT( slotAdjustColumns() ) ); |
223 | mailView->setShowSortIndicator ( true ); | 226 | mailView->setShowSortIndicator ( true ); |
224 | QLabel *spacer = new QLabel( toolBar ); | 227 | QLabel *spacer = new QLabel( toolBar ); |
225 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 228 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
@@ -370,10 +373,11 @@ void MainWindow::slotAdjustColumns() | |||
370 | mailView->setColumnWidth( 0, 10 ); | 373 | mailView->setColumnWidth( 0, 10 ); |
371 | mailView->setColumnWidth( 1, 100 ); | 374 | mailView->setColumnWidth( 1, 100 ); |
372 | mailView->setColumnWidth( 2, 100 ); | 375 | mailView->setColumnWidth( 2, 100 ); |
373 | mailView->setColumnWidth( 3, 50 ); | 376 | mailView->setColumnWidth( 3, 70 ); |
374 | mailView->setColumnWidth( 4, 120 ); | 377 | mailView->setColumnWidth( 4, 170 ); |
375 | if ( KOPrefs::instance()->mShowToField ) | 378 | if ( KOPrefs::instance()->mShowToField ) |
376 | mailView->setColumnWidth( 5, 100 ); | 379 | mailView->setColumnWidth( 5, 100 ); |
380 | mailView->setColumnAlignment( 3, AlignRight); | ||
377 | } | 381 | } |
378 | 382 | ||
379 | void MainWindow::slotEditSettings() | 383 | void MainWindow::slotEditSettings() |
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h index 6894039..178d2bb 100644 --- a/kmicromail/mainwindow.h +++ b/kmicromail/mainwindow.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #define MAINWINDOW_H | 4 | #define MAINWINDOW_H |
5 | 5 | ||
6 | #include <qmainwindow.h> | 6 | #include <qmainwindow.h> |
7 | #include <qlistview.h> | 7 | #include <klistview.h> |
8 | #include <qaction.h> | 8 | #include <qaction.h> |
9 | #include <qlineedit.h> | 9 | #include <qlineedit.h> |
10 | 10 | ||
@@ -66,7 +66,7 @@ protected: | |||
66 | QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, | 66 | QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, |
67 | *editSettings, *editAccounts, *syncFolders; | 67 | *editSettings, *editAccounts, *syncFolders; |
68 | AccountView *folderView; | 68 | AccountView *folderView; |
69 | QListView *mailView; | 69 | KListView *mailView; |
70 | QLineEdit* toLE,*fromLE,*subLE; | 70 | QLineEdit* toLE,*fromLE,*subLE; |
71 | //QBoxLayout *layout; | 71 | //QBoxLayout *layout; |
72 | }; | 72 | }; |