summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-08-22 20:51:25 (UTC)
committer zautrix <zautrix>2005-08-22 20:51:25 (UTC)
commitcfda06568cbd0e67ba0188f00622b348b57b27c0 (patch) (side-by-side diff)
tree925a3d4553eae2946cb8c588abae872b78d494f2
parentcb425b4c2d027d49f964368e94a52d3ba5e6aa31 (diff)
downloadkdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.zip
kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.tar.gz
kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.tar.bz2
fixxx
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt1
-rw-r--r--kmicromail/composemail.cpp5
-rw-r--r--kmicromail/mailistviewitem.cpp3
-rw-r--r--kmicromail/mailistviewitem.h4
-rw-r--r--kmicromail/mainwindow.cpp16
-rw-r--r--kmicromail/mainwindow.h4
6 files changed, 20 insertions, 13 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 6e8a8a7..761fcf7 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -10,2 +10,3 @@ Now searching works for "all phone numbers and all addresses" if "all fields" is
+Changed some behaviour in OM/Pi mail management to make it more usable.
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp
index 7b609fc..4bc4441 100644
--- a/kmicromail/composemail.cpp
+++ b/kmicromail/composemail.cpp
@@ -55,2 +55,3 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo
+ topLevelWidget()->setCaption( i18n("Compose mail - Click OK to send ->") );
mPickLineEdit = 0;
@@ -225,3 +226,3 @@ void ComposeMail::clearStatus()
{
- topLevelWidget()->setCaption( i18n("Compose mail") );
+ topLevelWidget()->setCaption( i18n("Compose mail - Click OK to send ->") );
}
@@ -426,3 +427,3 @@ void ComposeMail::accept()
if (! checkBoxLater->isChecked() ) {
- int yesno = QMessageBox::warning(0,i18n("Stop editing message"),
+ int yesno = QMessageBox::warning(0, subjectLine->text().left ( 25 ),
i18n("Send this message?"),
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp
index 5119744..15fa148 100644
--- a/kmicromail/mailistviewitem.cpp
+++ b/kmicromail/mailistviewitem.cpp
@@ -9,3 +9,3 @@
MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item )
- :QListViewItem(parent,item),mail_data()
+ :KListViewItem(parent,item),mail_data()
{
@@ -45,2 +45,3 @@ void MailListViewItem::showEntry()
}
+
setText(3, fsize );
diff --git a/kmicromail/mailistviewitem.h b/kmicromail/mailistviewitem.h
index 0fd44d3..b409c9d 100644
--- a/kmicromail/mailistviewitem.h
+++ b/kmicromail/mailistviewitem.h
@@ -4,3 +4,3 @@
-#include <qlistview.h>
+#include <klistview.h>
#include <libmailwrapper/mailtypes.h>
@@ -8,3 +8,3 @@
-class MailListViewItem:public QListViewItem
+class MailListViewItem:public KListViewItem
{
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index e3c5ec3..82a915e 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -25,2 +25,3 @@ extern QStatusBar* globalSstatusBarMainWindow;
#include <KDGanttMinimizeSplitter.h>
+#include <libkdepim/kpimglobalprefs.h>
@@ -167,3 +168,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- mailView = new QListView( split );
+ mailView = new KListView( split );
mailView->addColumn( i18n( " " ) );
@@ -180,3 +181,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
statusWidget->hide();
-
+ mailView->setSelectionMode( QListView::Multi );
+ mailView->setMultiSelection( true);
+ mailView->setAlternateBackground(KPimGlobalPrefs::instance()->mAlternateColor );
//layout->addWidget( mailView );
@@ -213,3 +216,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
//mailView->setMultiSelection ( true );
- mailView->setSelectionMode( QListView::Extended );
+ //mailView->setSelectionMode( QListView::Extended );
QValueList<int> list;
@@ -221,3 +224,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
split->setSizes( list );
- QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
+ QTimer::singleShot( 100, this, SLOT( slotAdjustColumns() ) );
mailView->setShowSortIndicator ( true );
@@ -372,6 +375,7 @@ void MainWindow::slotAdjustColumns()
mailView->setColumnWidth( 2, 100 );
- mailView->setColumnWidth( 3, 50 );
- mailView->setColumnWidth( 4, 120 );
+ mailView->setColumnWidth( 3, 70 );
+ mailView->setColumnWidth( 4, 170 );
if ( KOPrefs::instance()->mShowToField )
mailView->setColumnWidth( 5, 100 );
+ mailView->setColumnAlignment( 3, AlignRight);
}
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h
index 6894039..178d2bb 100644
--- a/kmicromail/mainwindow.h
+++ b/kmicromail/mainwindow.h
@@ -6,3 +6,3 @@
#include <qmainwindow.h>
-#include <qlistview.h>
+#include <klistview.h>
#include <qaction.h>
@@ -68,3 +68,3 @@ protected:
AccountView *folderView;
- QListView *mailView;
+ KListView *mailView;
QLineEdit* toLE,*fromLE,*subLE;