added simple back and next buttons on PictureDialog (temporary these)
This commit is contained in:
parent
2635f296ee
commit
80f27cd6e6
4 changed files with 5 additions and 4 deletions
|
@ -49,6 +49,7 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QDrag>
|
#include <QDrag>
|
||||||
|
#include <QIcon>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
|
@ -104,10 +105,8 @@ void PictureDialog::addPreviousNextButtons()
|
||||||
QPalette palette;
|
QPalette palette;
|
||||||
QToolBar *uiToolbar = new QToolBar("Picture Toolbar", this);
|
QToolBar *uiToolbar = new QToolBar("Picture Toolbar", this);
|
||||||
layout()->setMenuBar(uiToolbar);
|
layout()->setMenuBar(uiToolbar);
|
||||||
QAction *backAction = uiToolbar->addAction("<-", this, SLOT(previousPictureRequestedSlot()));
|
uiToolbar->addAction(QIcon(":/img/back.png"), "", this, SLOT(previousPictureRequestedSlot()));
|
||||||
QAction *nextAction = uiToolbar->addAction("->", this, SLOT(nextPictureRequestedSlot()));
|
uiToolbar->addAction(QIcon(":/img/next.png"), "", this, SLOT(nextPictureRequestedSlot()));
|
||||||
backAction->setToolTip("");
|
|
||||||
nextAction->setToolTip("");
|
|
||||||
ui->jsonFrame->setStyleSheet(QString("QFrame { background: %1; }").arg(palette.window().color().name()));
|
ui->jsonFrame->setStyleSheet(QString("QFrame { background: %1; }").arg(palette.window().color().name()));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
<file>5sync-96.png</file>
|
<file>5sync-96.png</file>
|
||||||
<file>5sync-128.png</file>
|
<file>5sync-128.png</file>
|
||||||
<file>5sync-256.png</file>
|
<file>5sync-256.png</file>
|
||||||
|
<file>back.png</file>
|
||||||
|
<file>next.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/global">
|
<qresource prefix="/global">
|
||||||
<file>global.de.ini</file>
|
<file>global.de.ini</file>
|
||||||
|
|
BIN
res/back.png
Normal file
BIN
res/back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 363 B |
BIN
res/next.png
Normal file
BIN
res/next.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 362 B |
Loading…
Reference in a new issue