summaryrefslogtreecommitdiff
path: root/core/pim/todo/quickeditimpl.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/quickeditimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/quickeditimpl.cpp48
1 files changed, 40 insertions, 8 deletions
diff --git a/core/pim/todo/quickeditimpl.cpp b/core/pim/todo/quickeditimpl.cpp
index 90ad19e..f700716 100644
--- a/core/pim/todo/quickeditimpl.cpp
+++ b/core/pim/todo/quickeditimpl.cpp
@@ -1 +1,31 @@
+/*
+                 This file is part of the Opie Project
+
+ Copyright (C) Opie Team <opie-devel@handhelds.org>
+ =.
+ .=l.
+           .>+-=
+ _;:,     .>    :=|. This program is free software; you can
+.> <`_,   >  .   <= redistribute it and/or modify it under
+:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
+.="- .-=="i,     .._ License as published by the Free Software
+ - .   .-<_>     .<> Foundation; either version 2 of the License,
+     ._= =}       : or (at your option) any later version.
+    .%`+i>       _;_.
+    .i_,=:_.      -<s. This program is distributed in the hope that
+     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
+ : ..    .:,     . . . without even the implied warranty of
+    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
+  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
+..}^=.=       =       ; Library General Public License for more
+++=   -.     .`     .: details.
+:     =  ...= . :.=-
+ -.   .:....=;==+<; You should have received a copy of the GNU
+  -_. . .   )=.  = Library General Public License along with
+    --        :-=` this library; see the file COPYING.LIB.
+ If not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
#include <qaction.h>
@@ -4,5 +34,4 @@
-#include <qpe/resource.h>
-
#include <opie2/oclickablelabel.h>
+#include <opie2/oresource.h>
@@ -20,5 +49,5 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
// see also tableview.cpp/h, taskeditoroverview.cpp/h
- priority1 = Resource::loadPixmap( "todo/priority1" );
- priority3 = Resource::loadPixmap( "todo/priority3" );
- priority5 = Resource::loadPixmap( "todo/priority5" );
+ priority1 = Opie::Core::OResource::loadPixmap( "todo/priority1" );
+ priority3 = Opie::Core::OResource::loadPixmap( "todo/priority3" );
+ priority5 = Opie::Core::OResource::loadPixmap( "todo/priority5" );
@@ -38,3 +67,4 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
#if 0
- QAction *a = new QAction( QWidget::tr( "More" ), Resource::loadPixmap( "todo/more" ), QString::null, 0, this, 0 );
+ QAction *a = new QAction( QWidget::tr( "More" ), Opie::Core::OResource::loadPixmap( "todo/more", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( slotMore() ) );
@@ -44,3 +74,4 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
- QAction *a = new QAction( QWidget::tr( "Enter" ), Resource::loadPixmap( "enter" ), QString::null, 0, this, 0 );
+ QAction *a = new QAction( QWidget::tr( "Enter" ), Opie::Core::OResource::loadPixmap( "enter", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( slotEnter() ) );
@@ -49,3 +80,4 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
- a = new QAction( QWidget::tr( "Cancel" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 );
+ a = new QAction( QWidget::tr( "Cancel" ), Opie::Core::OResource::loadPixmap( "close", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( slotCancel() ) );