From 0d79c003839718ae70b3b997162044abd5c26bf6 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 14 Mar 2004 20:08:59 +0000 Subject: Update the Examples --- (limited to 'examples/main-tab/simple.cpp') diff --git a/examples/main-tab/simple.cpp b/examples/main-tab/simple.cpp index c5a6d5a..7edb557 100644 --- a/examples/main-tab/simple.cpp +++ b/examples/main-tab/simple.cpp @@ -9,8 +9,8 @@ #include #include -#include // a template + macro to save the main method and allow quick launching -#include +#include // a template + macro to save the main method and allow quick launching +#include #include "simple.h" @@ -26,6 +26,8 @@ * either a main method or one for our component plugin system */ +/* The OApplicationFactory is in the Opie::Core namespace */ +using namespace Opie::Core; OPIE_EXPORT_APP( OApplicationFactory ) MainWindow::MainWindow(QWidget *parent, const char* name, WFlags fl ) @@ -38,7 +40,7 @@ MainWindow::MainWindow(QWidget *parent, const char* name, WFlags fl ) /* * Tab widget as central */ - OTabWidget *tab = new OTabWidget(this); + Opie::Ui::OTabWidget *tab = new Opie::Ui::OTabWidget(this); connect(tab, SIGNAL(currentChanged(QWidget*) ), this, SLOT( slotCurrentChanged(QWidget*) ) ); setCentralWidget( tab ); -- cgit v0.9.0.2