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:
WarmUpTill
2024-06-11 19:56:35 +02:00
committed by WarmUpTill
parent d77101b6aa
commit 3bc15e585c
20 changed files with 198 additions and 547 deletions

View File

@@ -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 &)));

View File

@@ -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());

View File

@@ -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: