author | zecke <zecke> | 2004-09-12 15:48:44 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-12 15:48:44 (UTC) |
commit | 12730b959f92a9d601d81bf28ab87fb265effe55 (patch) (unidiff) | |
tree | badea4f89e235f42f4565f5b625259649a177117 | |
parent | 8f22819ca6e53edaa1b80c25d34e7df5e60981a4 (diff) | |
download | opie-12730b959f92a9d601d81bf28ab87fb265effe55.zip opie-12730b959f92a9d601d81bf28ab87fb265effe55.tar.gz opie-12730b959f92a9d601d81bf28ab87fb265effe55.tar.bz2 |
-Fix layout for http://handhelds.org/scap/port.32003.png
-Remove old code
-Remove bogus code as commented by Stefan Eilers
3 files changed, 9 insertions, 31 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp index 81bb8fd..7b6117e 100644 --- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp | |||
@@ -33,10 +33,3 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
33 | QVBoxLayout * layout = new QVBoxLayout( this ); | 33 | QVBoxLayout * layout = new QVBoxLayout( this ); |
34 | layout->setMargin( 20 ); | 34 | layout->setMargin( 5 ); |
35 | |||
36 | #if 0 | ||
37 | // Informational stuff | ||
38 | QHBox *box4 = new QHBox( this ); | ||
39 | QLabel* colorLabel = new QLabel( box4, "" ); | ||
40 | colorLabel->setText( tr( "To activate settings: Restart application !" ) ); | ||
41 | #endif | ||
42 | 35 | ||
@@ -61,12 +54,2 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
61 | 54 | ||
62 | #if 0 | ||
63 | // Clip settings (currently not used) | ||
64 | QHBox *box2 = new QHBox( this ); | ||
65 | QLabel* clipLabel = new QLabel( box2, "" ); | ||
66 | clipLabel->setText( tr( "Clip line after X chars: " ) ); | ||
67 | SpinBoxClip = new QSpinBox( box2, "SpinClip" ); | ||
68 | SpinBoxClip->setMaxValue( 200 ); | ||
69 | QWhatsThis::add( SpinBoxClip , tr( "After how many chars should be the info about the task be cut off" ) ); | ||
70 | #endif | ||
71 | |||
72 | // Look ahead settings | 55 | // Look ahead settings |
@@ -79,7 +62,2 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
79 | 62 | ||
80 | // QHBox *box4 = new QHBox( this ); | ||
81 | |||
82 | // QLabel* colorLabel = new QLabel( box4, "" ); | ||
83 | // colorLabel->setText( tr( "To activate settings: Restart application !" ) ); | ||
84 | |||
85 | 63 | ||
@@ -111,5 +89,4 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
111 | 89 | ||
112 | //layout->addWidget( box4 ); | 90 | layout->addWidget( b_group ); |
113 | layout->addWidget( box1 ); | 91 | layout->addWidget( box1 ); |
114 | //layout->addWidget( box2 ); | ||
115 | layout->addWidget( box3 ); | 92 | layout->addWidget( box3 ); |
@@ -118,2 +95,9 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* | |||
118 | layout->addWidget( box7 ); | 95 | layout->addWidget( box7 ); |
96 | |||
97 | /* | ||
98 | * pack the widgets together | ||
99 | */ | ||
100 | QSpacerItem *item = new QSpacerItem( 1, 2, QSizePolicy::Minimum, | ||
101 | QSizePolicy::MinimumExpanding ); | ||
102 | layout->addItem( item ); | ||
119 | 103 | ||
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index d76a29a..df7c5e1 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |||
@@ -32,7 +32,2 @@ AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* | |||
32 | 32 | ||
33 | // Hä ? Nonsense ! (se) | ||
34 | if ( m_contactdb ) { | ||
35 | delete m_contactdb; | ||
36 | } | ||
37 | |||
38 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); | 33 | m_contactdb = new Opie::OPimContactAccess("addressplugin"); |
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.h b/core/pim/today/plugins/addressbook/addresspluginwidget.h index b1c690d..25b3098 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.h +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.h | |||
@@ -30,3 +30,2 @@ | |||
30 | class AddressBookPluginWidget : public QWidget { | 30 | class AddressBookPluginWidget : public QWidget { |
31 | |||
32 | Q_OBJECT | 31 | Q_OBJECT |