mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
use tool buttons with icons
This commit is contained in:
parent
3c8eeb8c48
commit
09ba547630
4 changed files with 10 additions and 4 deletions
|
@ -19,6 +19,7 @@
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QScrollArea>
|
#include <QScrollArea>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QToolButton>
|
||||||
|
|
||||||
#include "../../model/world/columnbase.hpp"
|
#include "../../model/world/columnbase.hpp"
|
||||||
#include "../../model/world/idtable.hpp"
|
#include "../../model/world/idtable.hpp"
|
||||||
|
@ -394,10 +395,13 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id, CSM
|
||||||
QWidget *mainWidget = new QWidget(this);
|
QWidget *mainWidget = new QWidget(this);
|
||||||
|
|
||||||
QHBoxLayout *buttonsLayout = new QHBoxLayout;
|
QHBoxLayout *buttonsLayout = new QHBoxLayout;
|
||||||
QPushButton* prevButton = new QPushButton(tr("Previous"), mainWidget);
|
QToolButton* prevButton = new QToolButton(mainWidget);
|
||||||
QPushButton* nextButton = new QPushButton(tr("Next"), mainWidget);
|
prevButton->setIcon(QIcon(":/go-previous.png"));
|
||||||
buttonsLayout->addWidget(prevButton);
|
QToolButton* nextButton = new QToolButton(mainWidget);
|
||||||
buttonsLayout->addWidget(nextButton);
|
nextButton->setIcon(QIcon(":/go-next.png"));
|
||||||
|
buttonsLayout->addWidget(prevButton, 0);
|
||||||
|
buttonsLayout->addWidget(nextButton, 1);
|
||||||
|
buttonsLayout->addStretch(2);
|
||||||
connect(nextButton, SIGNAL(clicked()), this, SLOT(nextId()));
|
connect(nextButton, SIGNAL(clicked()), this, SLOT(nextId()));
|
||||||
connect(prevButton, SIGNAL(clicked()), this, SLOT(prevId()));
|
connect(prevButton, SIGNAL(clicked()), this, SLOT(prevId()));
|
||||||
|
|
||||||
|
|
BIN
files/opencs/go-next.png
Normal file
BIN
files/opencs/go-next.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 930 B |
BIN
files/opencs/go-previous.png
Normal file
BIN
files/opencs/go-previous.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 955 B |
|
@ -57,6 +57,8 @@
|
||||||
<file>static.png</file>
|
<file>static.png</file>
|
||||||
<file>weapon.png</file>
|
<file>weapon.png</file>
|
||||||
<file>multitype.png</file>
|
<file>multitype.png</file>
|
||||||
|
<file>go-next.png</file>
|
||||||
|
<file>go-previous.png</file>
|
||||||
<file alias="startup/create-addon">raster/startup/big/create-addon.png</file>
|
<file alias="startup/create-addon">raster/startup/big/create-addon.png</file>
|
||||||
<file alias="startup/create-game">raster/startup/big/new-game.png</file>
|
<file alias="startup/create-game">raster/startup/big/new-game.png</file>
|
||||||
<file alias="startup/edit-content">raster/startup/big/edit-content.png</file>
|
<file alias="startup/edit-content">raster/startup/big/edit-content.png</file>
|
||||||
|
|
Loading…
Reference in a new issue