Diffstat (limited to 'examples/todayplugin/examplepluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/todayplugin/examplepluginwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ -1,42 +1,43 @@ /* * examplepluginwidget.cpp * * email : harlekin@handhelds.org * */ #include <qpe/config.h> #include <qpe/qcopenvelope_qws.h> #include "examplepluginwidget.h" + ExamplePluginWidget::ExamplePluginWidget( QWidget *parent, const char* name) : QWidget(parent, name ) { m_exampleLabel = 0l; m_layout = 0l; if ( m_exampleLabel ) { delete m_exampleLabel; } // 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 ) { delete m_layout; } m_layout = new QHBoxLayout( this ); m_layout->setAutoAdd( true ); readConfig(); getInfo(); } ExamplePluginWidget::~ExamplePluginWidget() { delete m_exampleLabel; delete m_layout; |