mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-24 02:05:24 -05:00
Switch QPushButton to QToolButton
This will be more consistent with the widget styles used throughout OBS and solves a few layout issues
This commit is contained in:
@@ -197,11 +197,7 @@ MacroActionSequenceEdit::MacroActionSequenceEdit(
|
||||
|
||||
_resetIndex->setMinimum(1);
|
||||
|
||||
auto line = new QFrame();
|
||||
line->setFrameShape(QFrame::VLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
_macroList->AddControl(line);
|
||||
_macroList->AddControl(_continueFrom);
|
||||
(void)_macroList->AddControl(_continueFrom);
|
||||
|
||||
QWidget::connect(_macroList, SIGNAL(Added(const std::string &)), this,
|
||||
SLOT(Add(const std::string &)));
|
||||
|
||||
@@ -281,9 +281,8 @@ void ProgressDialog::CategoryCountUpdated(int value)
|
||||
}
|
||||
|
||||
TwitchCategorySearchButton::TwitchCategorySearchButton(QWidget *parent)
|
||||
: QPushButton(parent)
|
||||
: QToolButton(parent)
|
||||
{
|
||||
setMaximumWidth(22);
|
||||
const std::string pathPrefix =
|
||||
GetDataFilePath("res/images/" + GetThemeTypeName());
|
||||
SetButtonIcon(this, (pathPrefix + "Search.svg").c_str());
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <QDialog>
|
||||
#include <QLabel>
|
||||
#include <QCheckBox>
|
||||
#include <QPushButton>
|
||||
#include <QToolButton>
|
||||
|
||||
namespace advss {
|
||||
|
||||
@@ -94,7 +94,7 @@ private:
|
||||
static std::map<QString, int> _streamingCategories;
|
||||
};
|
||||
|
||||
class TwitchCategorySearchButton : public QPushButton {
|
||||
class TwitchCategorySearchButton : public QToolButton {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user