mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 12:40:04 +00:00
use tool buttons with icons
This commit is contained in:
parent
3c8eeb8c48
commit
09ba547630
@ -19,6 +19,7 @@
|
||||
#include <QComboBox>
|
||||
#include <QScrollArea>
|
||||
#include <QPushButton>
|
||||
#include <QToolButton>
|
||||
|
||||
#include "../../model/world/columnbase.hpp"
|
||||
#include "../../model/world/idtable.hpp"
|
||||
@ -394,10 +395,13 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id, CSM
|
||||
QWidget *mainWidget = new QWidget(this);
|
||||
|
||||
QHBoxLayout *buttonsLayout = new QHBoxLayout;
|
||||
QPushButton* prevButton = new QPushButton(tr("Previous"), mainWidget);
|
||||
QPushButton* nextButton = new QPushButton(tr("Next"), mainWidget);
|
||||
buttonsLayout->addWidget(prevButton);
|
||||
buttonsLayout->addWidget(nextButton);
|
||||
QToolButton* prevButton = new QToolButton(mainWidget);
|
||||
prevButton->setIcon(QIcon(":/go-previous.png"));
|
||||
QToolButton* nextButton = new QToolButton(mainWidget);
|
||||
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(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>weapon.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-game">raster/startup/big/new-game.png</file>
|
||||
<file alias="startup/edit-content">raster/startup/big/edit-content.png</file>
|
||||
|
Loading…
x
Reference in New Issue
Block a user