summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2003-03-21 21:03:15 (UTC)
committer harlekin <harlekin>2003-03-21 21:03:15 (UTC)
commit3ed4386c2ee0e411fa3a8f9a81c3d6c86855d385 (patch) (side-by-side diff)
tree7fb1e530231484d36ed35319701b122d8648e3a1 /noncore
parentbf981853b49145690a28a3073aa2e11af329f089 (diff)
downloadopie-3ed4386c2ee0e411fa3a8f9a81c3d6c86855d385.zip
opie-3ed4386c2ee0e411fa3a8f9a81c3d6c86855d385.tar.gz
opie-3ed4386c2ee0e411fa3a8f9a81c3d6c86855d385.tar.bz2
redo undo now in inline
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index 53db993..459f1a8 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -85,13 +85,13 @@ DrawPad::DrawPad(QWidget* parent, const char* name)
toolsPopupMenu->insertSeparator();
QAction* thumbnailViewAction = new QAction(tr("Thumbnail View"), tr("Thumbnail View..."), 0, this);
connect(thumbnailViewAction, SIGNAL(activated()), this, SLOT(thumbnailView()));
thumbnailViewAction->addTo(toolsPopupMenu);
-
+
QAction* pageInformationAction = new QAction(tr("Page Information"), tr("Page Information..."), 0, this);
connect(pageInformationAction, SIGNAL(activated()), this, SLOT(pageInformation()));
pageInformationAction->addTo(toolsPopupMenu);
toolsPopupMenu->insertSeparator();
@@ -124,18 +124,18 @@ DrawPad::DrawPad(QWidget* parent, const char* name)
emptyToolBar->setHorizontalStretchable(true);
// init navigation toolbar
QPEToolBar* navigationToolBar = new QPEToolBar(this);
- m_pUndoAction = new QAction(tr("Undo"), Resource::loadIconSet("drawpad/undo"), QString::null, 0, this);
+ m_pUndoAction = new QAction(tr("Undo"), Resource::loadIconSet("undo"), QString::null, 0, this);
connect(m_pUndoAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(undo()));
m_pUndoAction->addTo(navigationToolBar);
m_pUndoAction->setWhatsThis( tr( "Click here to undo the last action." ) );
- m_pRedoAction = new QAction(tr("Redo"), Resource::loadIconSet("drawpad/redo"), QString::null, 0, this);
+ m_pRedoAction = new QAction(tr("Redo"), Resource::loadIconSet("redo"), QString::null, 0, this);
connect(m_pRedoAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(redo()));
m_pRedoAction->addTo(navigationToolBar);
m_pRedoAction->setWhatsThis( tr( "Click here to re-perform the last action." ) );
m_pFirstPageAction = new QAction(tr("First Page"), Resource::loadIconSet("fastback"), QString::null, 0, this);
connect(m_pFirstPageAction, SIGNAL(activated()), m_pDrawPadCanvas, SLOT(goFirstPage()));
@@ -553,13 +553,13 @@ void DrawPad::changeBrushColor(const QColor& color)
m_brush = QBrush(color);
QPainter painter;
painter.begin(m_pBrushColorToolButton->pixmap());
painter.fillRect(QRect(0, 12, 14, 2), m_brush.color());
painter.end();
-
+
m_pBrushColorToolButton->popup()->hide();
}
void DrawPad::updateView()
{
uint pagePosition = m_pDrawPadCanvas->pagePosition();