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/todayplugin') diff --git a/examples/todayplugin/config.in b/examples/todayplugin/config.in index 53004cb..0a6a573 100644 --- a/examples/todayplugin/config.in +++ b/examples/todayplugin/config.in @@ -1,5 +1,5 @@ config TODAY_EXAMPLE boolean "Opie-Today Plugin Example" default "n" - depends ( LIBQPE || LIBQPE-X11 ) && EXAMPLES && LIBOPIE + depends ( LIBQPE || LIBQPE-X11 ) && EXAMPLES && LIBOPIEUI2 diff --git a/examples/todayplugin/example.pro b/examples/todayplugin/example.pro index 4c8c942..f4bca36 100644 --- a/examples/todayplugin/example.pro +++ b/examples/todayplugin/example.pro @@ -9,7 +9,7 @@ SOURCES = exampleplugin.cpp examplepluginimpl.cpp examplepluginwidget.cpp INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS+= -lqpe -lopie +LIBS+= -lqpe -lopieui2 DESTDIR = $(OPIEDIR)/plugins/today TARGET = todayexampleplugin diff --git a/examples/todayplugin/exampleplugin.h b/examples/todayplugin/exampleplugin.h index a1df923..94f5b37 100644 --- a/examples/todayplugin/exampleplugin.h +++ b/examples/todayplugin/exampleplugin.h @@ -12,8 +12,8 @@ #include #include -#include -#include +#include +#include #include "examplepluginwidget.h" diff --git a/examples/todayplugin/examplepluginimpl.h b/examples/todayplugin/examplepluginimpl.h index 77ec4f6..31f8907 100644 --- a/examples/todayplugin/examplepluginimpl.h +++ b/examples/todayplugin/examplepluginimpl.h @@ -8,7 +8,7 @@ #ifndef EXAMPLE_PLUGIN_IMPL_H #define EXAMPLE_PLUGIN_IMPL_H -#include +#include class ExamplePlugin; diff --git a/examples/todayplugin/examplepluginwidget.cpp b/examples/todayplugin/examplepluginwidget.cpp index d66a11a..10fd39a 100644 --- a/examples/todayplugin/examplepluginwidget.cpp +++ b/examples/todayplugin/examplepluginwidget.cpp @@ -10,6 +10,7 @@ #include "examplepluginwidget.h" + ExamplePluginWidget::ExamplePluginWidget( QWidget *parent, const char* name) : QWidget(parent, name ) { @@ -23,7 +24,7 @@ ExamplePluginWidget::ExamplePluginWidget( QWidget *parent, const char* name) // since here a OClickableLabel is used, the plugin part will be clickable, and the actions // that should be triggered when clicked are defined in slotClicked() // of course also normal widgets can be used. - m_exampleLabel = new OClickableLabel( this ); + m_exampleLabel = new Opie::Ui::OClickableLabel( this ); connect( m_exampleLabel, SIGNAL( clicked() ), this, SLOT( slotClicked() ) ); if ( m_layout ) { diff --git a/examples/todayplugin/examplepluginwidget.h b/examples/todayplugin/examplepluginwidget.h index eb3c660..70e717e 100644 --- a/examples/todayplugin/examplepluginwidget.h +++ b/examples/todayplugin/examplepluginwidget.h @@ -10,7 +10,7 @@ #include -#include +#include class ExamplePluginWidget : public QWidget { @@ -26,7 +26,7 @@ private slots: void slotClicked(); private: - OClickableLabel* m_exampleLabel; + Opie::Ui::OClickableLabel* m_exampleLabel; QHBoxLayout* m_layout; void readConfig(); void getInfo(); -- cgit v0.9.0.2