1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-28 20:36:42 +00:00

use custom button on toolbar (top level)

This commit is contained in:
Marc Zinnschlag 2014-07-10 11:45:45 +02:00
parent 44b95bbd7b
commit d6c0b8d0ac
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
#include "scenetoolbar.hpp" #include "scenetoolbar.hpp"
CSVWidget::SceneTool::SceneTool (SceneToolbar *parent) : QPushButton (parent) CSVWidget::SceneTool::SceneTool (SceneToolbar *parent) : PushButton (true, parent)
{ {
setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed)); setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
setIconSize (QSize (parent->getIconSize(), parent->getIconSize())); setIconSize (QSize (parent->getIconSize(), parent->getIconSize()));

View file

@ -1,14 +1,14 @@
#ifndef CSV_WIDGET_SCENETOOL_H #ifndef CSV_WIDGET_SCENETOOL_H
#define CSV_WIDGET_SCENETOOL_H #define CSV_WIDGET_SCENETOOL_H
#include <QPushButton> #include "pushbutton.hpp"
namespace CSVWidget namespace CSVWidget
{ {
class SceneToolbar; class SceneToolbar;
///< \brief Tool base class ///< \brief Tool base class
class SceneTool : public QPushButton class SceneTool : public PushButton
{ {
Q_OBJECT Q_OBJECT