author | zecke <zecke> | 2004-04-02 06:42:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-02 06:42:17 (UTC) |
commit | fbe21a008888cef12eb863151b4aaee1e75f0f22 (patch) (unidiff) | |
tree | f25c9b08de30c1b6360d16aa3236eb8c10b44051 | |
parent | d6c90e60dbc0a5bfd0bb2176a652ca7664a2a4b0 (diff) | |
download | opie-fbe21a008888cef12eb863151b4aaee1e75f0f22.zip opie-fbe21a008888cef12eb863151b4aaee1e75f0f22.tar.gz opie-fbe21a008888cef12eb863151b4aaee1e75f0f22.tar.bz2 |
update the example as well
-rw-r--r-- | libopie2/examples/opieui/okeyconfigwidget/keyconfig.pro | 4 | ||||
-rw-r--r-- | libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libopie2/examples/opieui/okeyconfigwidget/keyconfig.pro b/libopie2/examples/opieui/okeyconfigwidget/keyconfig.pro index 07188d9..7c60384 100644 --- a/libopie2/examples/opieui/okeyconfigwidget/keyconfig.pro +++ b/libopie2/examples/opieui/okeyconfigwidget/keyconfig.pro | |||
@@ -1,9 +1,9 @@ | |||
1 | CONFIG += qt | 1 | CONFIG += qt |
2 | 2 | ||
3 | TEMPLATE = app | 3 | TEMPLATE = app |
4 | SOURCES = ../../../../noncore/graphics/opie-eye/lib/okeyconfigwidget.cpp testwidget.cpp | 4 | SOURCES = testwidget.cpp |
5 | HEADERS = ../../../../noncore/graphics/opie-eye/lib/okeyconfigwidget.h testwidget.h | 5 | HEADERS = testwidget.h |
6 | 6 | ||
7 | INCLUDEPATH += $(OPIEDIR)/include $(OPIEDIR)/noncore/graphics/opie-eye/lib/ | 7 | INCLUDEPATH += $(OPIEDIR)/include $(OPIEDIR)/noncore/graphics/opie-eye/lib/ |
8 | DESTPATH += $(OPIEDIR)/include | 8 | DESTPATH += $(OPIEDIR)/include |
9 | 9 | ||
diff --git a/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp b/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp index 5553166..10b52f9 100644 --- a/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp +++ b/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp | |||
@@ -1,7 +1,7 @@ | |||
1 | #include "testwidget.h" | 1 | #include "testwidget.h" |
2 | 2 | ||
3 | #include "okeyconfigwidget.h" | 3 | #include <opie2/okeyconfigwidget.h> |
4 | 4 | ||
5 | #include <opie2/oapplicationfactory.h> | 5 | #include <opie2/oapplicationfactory.h> |
6 | #include <opie2/otabwidget.h> | 6 | #include <opie2/otabwidget.h> |
7 | 7 | ||
@@ -51,8 +51,10 @@ MainWindow::MainWindow( QWidget* parent, const char* name, WFlags fl ) | |||
51 | } | 51 | } |
52 | 52 | ||
53 | void MainWindow::slotClicked() { | 53 | void MainWindow::slotClicked() { |
54 | QDialog diag( this, "name", true ); | 54 | QDialog diag( this, "name", true ); |
55 | diag.setCaption( tr( "Manage Keys" ) ); | ||
56 | |||
55 | QHBoxLayout *lay = new QHBoxLayout( &diag ); | 57 | QHBoxLayout *lay = new QHBoxLayout( &diag ); |
56 | Opie::Ui::OKeyConfigWidget *wid = new Opie::Ui::OKeyConfigWidget( &diag, "key config" ); | 58 | Opie::Ui::OKeyConfigWidget *wid = new Opie::Ui::OKeyConfigWidget( &diag, "key config" ); |
57 | wid->setChangeMode( Opie::Ui::OKeyConfigWidget::Queue ); | 59 | wid->setChangeMode( Opie::Ui::OKeyConfigWidget::Queue ); |
58 | wid->insert( tr("MainWindow Options" ), m_manager ); | 60 | wid->insert( tr("MainWindow Options" ), m_manager ); |