From 21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 21 Oct 2002 21:43:43 +0000 Subject: 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 --- (limited to 'noncore/apps/opie-console/profiledialogwidget.cpp') 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 +#include + #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& ) { + +} -- cgit v0.9.0.2