author | drw <drw> | 2005-04-06 21:39:47 (UTC) |
---|---|---|
committer | drw <drw> | 2005-04-06 21:39:47 (UTC) |
commit | 9ea956870ddf74ddc70b83ed529ebb3b36e9231e (patch) (unidiff) | |
tree | 599da226b62023d6c51c1f00867e3dffde9977ec /core/pim/todo/quickeditimpl.cpp | |
parent | 2b0e27b45eb9ff5563f786c5e45d53db49afb9f9 (diff) | |
download | opie-9ea956870ddf74ddc70b83ed529ebb3b36e9231e.zip opie-9ea956870ddf74ddc70b83ed529ebb3b36e9231e.tar.gz opie-9ea956870ddf74ddc70b83ed529ebb3b36e9231e.tar.bz2 |
Use OResource for loading images and fix headers
Diffstat (limited to 'core/pim/todo/quickeditimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/quickeditimpl.cpp | 48 |
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 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | Copyright (C) Opie Team <opie-devel@handhelds.org> | ||
5 | =. | ||
6 | .=l. | ||
7 | .>+-= | ||
8 | _;:, .> :=|. This program is free software; you can | ||
9 | .> <`_, > . <= redistribute it and/or modify it under | ||
10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
11 | .="- .-=="i, .._ License as published by the Free Software | ||
12 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
13 | ._= =} : or (at your option) any later version. | ||
14 | .%`+i> _;_. | ||
15 | .i_,=:_. -<s. This program is distributed in the hope that | ||
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
17 | : .. .:, . . . without even the implied warranty of | ||
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
20 | ..}^=.= = ; Library General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | */ | ||
30 | |||
1 | #include <qaction.h> | 31 | #include <qaction.h> |
@@ -4,5 +34,4 @@ | |||
4 | 34 | ||
5 | #include <qpe/resource.h> | ||
6 | |||
7 | #include <opie2/oclickablelabel.h> | 35 | #include <opie2/oclickablelabel.h> |
36 | #include <opie2/oresource.h> | ||
8 | 37 | ||
@@ -20,5 +49,5 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible ) | |||
20 | // see also tableview.cpp/h, taskeditoroverview.cpp/h | 49 | // see also tableview.cpp/h, taskeditoroverview.cpp/h |
21 | priority1 = Resource::loadPixmap( "todo/priority1" ); | 50 | priority1 = Opie::Core::OResource::loadPixmap( "todo/priority1" ); |
22 | priority3 = Resource::loadPixmap( "todo/priority3" ); | 51 | priority3 = Opie::Core::OResource::loadPixmap( "todo/priority3" ); |
23 | priority5 = Resource::loadPixmap( "todo/priority5" ); | 52 | priority5 = Opie::Core::OResource::loadPixmap( "todo/priority5" ); |
24 | 53 | ||
@@ -38,3 +67,4 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible ) | |||
38 | #if 0 | 67 | #if 0 |
39 | QAction *a = new QAction( QWidget::tr( "More" ), Resource::loadPixmap( "todo/more" ), QString::null, 0, this, 0 ); | 68 | QAction *a = new QAction( QWidget::tr( "More" ), Opie::Core::OResource::loadPixmap( "todo/more", Opie::Core::OResource::SmallIcon ), |
69 | QString::null, 0, this, 0 ); | ||
40 | connect( a, SIGNAL( activated() ), this, SLOT( slotMore() ) ); | 70 | connect( a, SIGNAL( activated() ), this, SLOT( slotMore() ) ); |
@@ -44,3 +74,4 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible ) | |||
44 | 74 | ||
45 | QAction *a = new QAction( QWidget::tr( "Enter" ), Resource::loadPixmap( "enter" ), QString::null, 0, this, 0 ); | 75 | QAction *a = new QAction( QWidget::tr( "Enter" ), Opie::Core::OResource::loadPixmap( "enter", Opie::Core::OResource::SmallIcon ), |
76 | QString::null, 0, this, 0 ); | ||
46 | connect( a, SIGNAL( activated() ), this, SLOT( slotEnter() ) ); | 77 | connect( a, SIGNAL( activated() ), this, SLOT( slotEnter() ) ); |
@@ -49,3 +80,4 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible ) | |||
49 | 80 | ||
50 | a = new QAction( QWidget::tr( "Cancel" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 81 | a = new QAction( QWidget::tr( "Cancel" ), Opie::Core::OResource::loadPixmap( "close", Opie::Core::OResource::SmallIcon ), |
82 | QString::null, 0, this, 0 ); | ||
51 | connect( a, SIGNAL( activated() ), this, SLOT( slotCancel() ) ); | 83 | connect( a, SIGNAL( activated() ), this, SLOT( slotCancel() ) ); |