summaryrefslogtreecommitdiff
authortille <tille>2002-10-25 21:13:51 (UTC)
committer tille <tille>2002-10-25 21:13:51 (UTC)
commit595407074ac5724eb33aeb151ce27e38fbca21d5 (patch) (side-by-side diff)
tree5f29c9fe9e2c06cc887726e475e50da47e67803c
parent437330505960e2783e088049665e0a11b2dc7edb (diff)
downloadopie-595407074ac5724eb33aeb151ce27e38fbca21d5.zip
opie-595407074ac5724eb33aeb151ce27e38fbca21d5.tar.gz
opie-595407074ac5724eb33aeb151ce27e38fbca21d5.tar.bz2
sorts the tanslated country now
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/TODO4
-rw-r--r--core/pim/addressbook/contacteditor.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO
index 100a6fd..654bbd2 100644
--- a/core/pim/addressbook/TODO
+++ b/core/pim/addressbook/TODO
@@ -12,14 +12,12 @@ Important:
- Overview window cleanup needed..
- Cursor keys should work in detail-view (ablabel)
-> Ablabel should be removed and Abtable should be increased with
different views (as started by darwin zins)..
- Store last settings of combo-boxes
- Finishing of new View functions (List, Phonebook...)
-- The names of the countries are sorted by there english names, only..
- Even if they are translated.. :S
- Reload if contacts were changed externally
- "What's this" should be added
Less important:
- The picker (alphabetical sort widget) should be
@@ -41,6 +39,8 @@ Fixed:
- Mail-Icon is missing
- Use opie-mail insted of qt-mail if possible.
- Font menu is invisible using german translation
- Personal contact editor: Disable categories
- "Nonenglish" translation bug has to be fixed.
- contacteditor: Birthday, annyversary, ... : Use Dateselector
+- The names of the countries are sorted by there english names, only..
+ Even if they are translated.. :S
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index a59a927..52ab0f2 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -35,12 +35,13 @@
#include <qscrollview.h>
#include <qtoolbutton.h>
#include <qpushbutton.h>
#include <qmainwindow.h>
#include <qvaluelist.h>
#include <qpopupmenu.h>
+#include <qlistbox.h>
static inline bool containsAlphaNum( const QString &str );
static inline bool constainsWhiteSpace( const QString &str );
// helper functions, convert our comma delimited list to proper
// file format...
@@ -694,12 +695,14 @@ void ContactEditor::init() {
cmbCountry->insertItem( tr ( "Virgin Islands" ) );
cmbCountry->insertItem( tr ( "Western Sahara" ) );
cmbCountry->insertItem( tr ( "Yemen" ) );
cmbCountry->insertItem( tr ( "Yugoslavia" ) );
cmbCountry->insertItem( tr ( "Zambia" ) );
cmbCountry->insertItem( tr ( "Zimbabwe" ) );
+ if (cmbCountry->listBox()!=0)
+ cmbCountry->listBox()->sort();
cmbCountry->setMaximumWidth( 135 );
gl->addMultiCellWidget( cmbCountry, 5, 5, 1, 2 );
cmbChooserField4 = new QComboBox( FALSE, container );