author | drw <drw> | 2005-05-23 22:51:56 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-23 22:51:56 (UTC) |
commit | 71ecaf241641c2c58b997df56074cf4849e6d6c5 (patch) (unidiff) | |
tree | aec19a63d44027eec822775216d9b63e50ff4563 /noncore/graphics/drawpad/thumbnailview.cpp | |
parent | b153f9739d300b3bc608ea76968b818818fce1d0 (diff) | |
download | opie-71ecaf241641c2c58b997df56074cf4849e6d6c5.zip opie-71ecaf241641c2c58b997df56074cf4849e6d6c5.tar.gz opie-71ecaf241641c2c58b997df56074cf4849e6d6c5.tar.bz2 |
Resource -> OResource
Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/noncore/graphics/drawpad/thumbnailview.cpp b/noncore/graphics/drawpad/thumbnailview.cpp index 1ccf484..d190ffe 100644 --- a/noncore/graphics/drawpad/thumbnailview.cpp +++ b/noncore/graphics/drawpad/thumbnailview.cpp | |||
@@ -20,4 +20,5 @@ | |||
20 | 20 | ||
21 | #include <opie2/oresource.h> | ||
22 | |||
21 | #include <qpe/config.h> | 23 | #include <qpe/config.h> |
22 | #include <qpe/resource.h> | ||
23 | #include <qpe/timestring.h> | 24 | #include <qpe/timestring.h> |
@@ -241,4 +242,7 @@ ThumbnailView::ThumbnailView(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas, QWi | |||
241 | 242 | ||
243 | bool useBigIcon = qApp->desktop()->size().width() > 330; | ||
244 | |||
242 | QToolButton* newPageButton = new QToolButton(this); | 245 | QToolButton* newPageButton = new QToolButton(this); |
243 | newPageButton->setIconSet(Resource::loadIconSet("new")); | 246 | newPageButton->setUsesBigPixmap( useBigIcon ); |
247 | newPageButton->setPixmap(Opie::Core::OResource::loadPixmap("new", Opie::Core::OResource::SmallIcon)); | ||
244 | newPageButton->setAutoRaise(true); | 248 | newPageButton->setAutoRaise(true); |
@@ -248,3 +252,4 @@ ThumbnailView::ThumbnailView(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas, QWi | |||
248 | QToolButton* clearPageButton = new QToolButton(this); | 252 | QToolButton* clearPageButton = new QToolButton(this); |
249 | clearPageButton->setIconSet(Resource::loadIconSet("drawpad/clear")); | 253 | clearPageButton->setUsesBigPixmap( useBigIcon ); |
254 | clearPageButton->setPixmap(Opie::Core::OResource::loadPixmap("drawpad/clear", Opie::Core::OResource::SmallIcon)); | ||
250 | clearPageButton->setAutoRaise(true); | 255 | clearPageButton->setAutoRaise(true); |
@@ -254,3 +259,4 @@ ThumbnailView::ThumbnailView(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas, QWi | |||
254 | QToolButton* deletePageButton = new QToolButton(this); | 259 | QToolButton* deletePageButton = new QToolButton(this); |
255 | deletePageButton->setIconSet(Resource::loadIconSet("trash")); | 260 | deletePageButton->setUsesBigPixmap( useBigIcon ); |
261 | deletePageButton->setPixmap(Opie::Core::OResource::loadPixmap("trash", Opie::Core::OResource::SmallIcon)); | ||
256 | deletePageButton->setAutoRaise(true); | 262 | deletePageButton->setAutoRaise(true); |
@@ -260,3 +266,4 @@ ThumbnailView::ThumbnailView(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas, QWi | |||
260 | m_pMovePageUpButton = new QToolButton(this); | 266 | m_pMovePageUpButton = new QToolButton(this); |
261 | m_pMovePageUpButton->setIconSet(Resource::loadIconSet("up")); | 267 | m_pMovePageUpButton->setUsesBigPixmap( useBigIcon ); |
268 | m_pMovePageUpButton->setPixmap(Opie::Core::OResource::loadPixmap("up", Opie::Core::OResource::SmallIcon)); | ||
262 | m_pMovePageUpButton->setAutoRaise(true); | 269 | m_pMovePageUpButton->setAutoRaise(true); |
@@ -264,5 +271,6 @@ ThumbnailView::ThumbnailView(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas, QWi | |||
264 | QWhatsThis::add( m_pMovePageUpButton, tr( "Click here to move the current sheet up one position in the list." ) ); | 271 | QWhatsThis::add( m_pMovePageUpButton, tr( "Click here to move the current sheet up one position in the list." ) ); |
265 | 272 | ||
266 | m_pMovePageDownButton = new QToolButton(this); | 273 | m_pMovePageDownButton = new QToolButton(this); |
267 | m_pMovePageDownButton->setIconSet(Resource::loadIconSet("down")); | 274 | m_pMovePageDownButton->setUsesBigPixmap( useBigIcon ); |
275 | m_pMovePageDownButton->setPixmap(Opie::Core::OResource::loadPixmap("down", Opie::Core::OResource::SmallIcon)); | ||
268 | m_pMovePageDownButton->setAutoRaise(true); | 276 | m_pMovePageDownButton->setAutoRaise(true); |