1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 12:39:41 +00:00

removed text argument from button constructor, because toolbar buttons will always be icon only

This commit is contained in:
Marc Zinnschlag 2014-07-10 11:34:09 +02:00
parent 365b721878
commit 8b239df1b1
3 changed files with 4 additions and 4 deletions

View file

@ -29,8 +29,8 @@ void CSVWidget::PushButton::mouseReleaseEvent (QMouseEvent *event)
QPushButton::mouseReleaseEvent (event);
}
CSVWidget::PushButton::PushButton (const QIcon& icon, const QString& text, QWidget *parent)
: QPushButton (icon, text, parent), mKeepOpen (false)
CSVWidget::PushButton::PushButton (const QIcon& icon, QWidget *parent)
: QPushButton (icon, "", parent), mKeepOpen (false)
{
setCheckable (true);
}

View file

@ -21,7 +21,7 @@ namespace CSVWidget
public:
PushButton (const QIcon& icon, const QString& text, QWidget *parent = 0);
PushButton (const QIcon& icon, QWidget *parent = 0);
bool hasKeepOpen() const;
};

View file

@ -28,7 +28,7 @@ void CSVWidget::SceneToolMode::showPanel (const QPoint& position)
void CSVWidget::SceneToolMode::addButton (const std::string& icon, const std::string& id)
{
PushButton *button = new PushButton (QIcon (QPixmap (icon.c_str())), "", mPanel);
PushButton *button = new PushButton (QIcon (QPixmap (icon.c_str())), mPanel);
button->setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
button->setIconSize (QSize (mIconSize, mIconSize));
button->setFixedSize (mButtonSize, mButtonSize);