author | zecke <zecke> | 2002-10-21 21:43:43 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-21 21:43:43 (UTC) |
commit | 21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a (patch) (unidiff) | |
tree | 98586789ecce5eea1f1d3eb1e5a2184412f90a06 /noncore/apps/opie-console/profiledialogwidget.cpp | |
parent | e2f94235dae5ec84a5e888e4114ce0bdd91db7e7 (diff) | |
download | opie-21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a.zip opie-21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a.tar.gz opie-21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a.tar.bz2 |
add a quirk mode into main. if you -DFSCKED_DISTRIBUTION
opie-console will take care of some magic...
Add a No Configuration Widget instead of a big fat gray thing
above my beloved OTabWidget
Fix some compiler warning
Diffstat (limited to 'noncore/apps/opie-console/profiledialogwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profiledialogwidget.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profiledialogwidget.cpp b/noncore/apps/opie-console/profiledialogwidget.cpp index caad998..c356535 100644 --- a/noncore/apps/opie-console/profiledialogwidget.cpp +++ b/noncore/apps/opie-console/profiledialogwidget.cpp | |||
@@ -1,3 +1,6 @@ | |||
1 | #include <qlayout.h> | ||
2 | #include <qlabel.h> | ||
3 | |||
1 | #include "profiledialogwidget.h" | 4 | #include "profiledialogwidget.h" |
2 | 5 | ||
3 | ProfileDialogWidget::ProfileDialogWidget( const QString&, QWidget* parent, | 6 | ProfileDialogWidget::ProfileDialogWidget( const QString&, QWidget* parent, |
@@ -33,7 +36,7 @@ ProfileDialogWidget::Type ProfileDialogConnectionWidget::type()const { | |||
33 | ProfileDialogKeyWidget::ProfileDialogKeyWidget( const QString &na, | 36 | ProfileDialogKeyWidget::ProfileDialogKeyWidget( const QString &na, |
34 | QWidget *parent, | 37 | QWidget *parent, |
35 | const char *name) | 38 | const char *name) |
36 | : ProfileDialogWidget(na, parent, name ) | 39 | : ProfileDialogWidget(na, parent, name ) |
37 | { | 40 | { |
38 | } | 41 | } |
39 | ProfileDialogKeyWidget::~ProfileDialogKeyWidget() { | 42 | ProfileDialogKeyWidget::~ProfileDialogKeyWidget() { |
@@ -41,3 +44,19 @@ ProfileDialogKeyWidget::~ProfileDialogKeyWidget() { | |||
41 | ProfileDialogWidget::Type ProfileDialogKeyWidget::type() const{ | 44 | ProfileDialogWidget::Type ProfileDialogKeyWidget::type() const{ |
42 | return Keyboard; | 45 | return Keyboard; |
43 | } | 46 | } |
47 | |||
48 | NoOptions::NoOptions( const QString& name, QWidget* parent, const char* na ) | ||
49 | : ProfileDialogWidget( name, parent, na ) { | ||
50 | QHBoxLayout* lay = new QHBoxLayout(this); | ||
51 | QLabel* lbl = new QLabel( this ); | ||
52 | lbl->setText( tr("This Plugin does not support any configurations") ); | ||
53 | lbl->setTextFormat( RichText ); | ||
54 | |||
55 | lay->addWidget( lbl ); | ||
56 | } | ||
57 | void NoOptions::load( const Profile& ) { | ||
58 | |||
59 | } | ||
60 | void NoOptions::save( Profile& ) { | ||
61 | |||
62 | } | ||