summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profiledialogwidget.cpp
authorzecke <zecke>2002-10-21 21:43:43 (UTC)
committer zecke <zecke>2002-10-21 21:43:43 (UTC)
commit21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a (patch) (side-by-side diff)
tree98586789ecce5eea1f1d3eb1e5a2184412f90a06 /noncore/apps/opie-console/profiledialogwidget.cpp
parente2f94235dae5ec84a5e888e4114ce0bdd91db7e7 (diff)
downloadopie-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.cpp21
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 @@
+#include <qlayout.h>
+#include <qlabel.h>
+
#include "profiledialogwidget.h"
ProfileDialogWidget::ProfileDialogWidget( const QString&, QWidget* parent,
@@ -33,7 +36,7 @@ ProfileDialogWidget::Type ProfileDialogConnectionWidget::type()const {
ProfileDialogKeyWidget::ProfileDialogKeyWidget( const QString &na,
QWidget *parent,
const char *name)
- : ProfileDialogWidget(na, parent, name )
+ : ProfileDialogWidget(na, parent, name )
{
}
ProfileDialogKeyWidget::~ProfileDialogKeyWidget() {
@@ -41,3 +44,19 @@ ProfileDialogKeyWidget::~ProfileDialogKeyWidget() {
ProfileDialogWidget::Type ProfileDialogKeyWidget::type() const{
return Keyboard;
}
+
+NoOptions::NoOptions( const QString& name, QWidget* parent, const char* na )
+ : ProfileDialogWidget( name, parent, na ) {
+ QHBoxLayout* lay = new QHBoxLayout(this);
+ QLabel* lbl = new QLabel( this );
+ lbl->setText( tr("This Plugin does not support any configurations") );
+ lbl->setTextFormat( RichText );
+
+ lay->addWidget( lbl );
+}
+void NoOptions::load( const Profile& ) {
+
+}
+void NoOptions::save( Profile& ) {
+
+}