Skip to content

Commit

Permalink
Make hidden dock button not take up space
Browse files Browse the repository at this point in the history
In the brush settings. Since they got stretched, it no longer looks
strange for them to be slightly off center and having that space wasted
is annoying for people that want to use a lot of brush slots.
  • Loading branch information
askmeaboutlo0m committed Sep 15, 2024
1 parent bb8eedb commit b5eb405
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/desktop/docks/toolsettingsdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,6 @@ void ToolSettings::selectTool(tools::Tool::Type tool)
d->headerStack->setCurrentWidget(d->headerLabel);
}

TitleWidget *titleWidget = qobject_cast<TitleWidget *>(titleBarWidget());
if(titleWidget) {
titleWidget->setKeepButtonSpace(ts->keepTitleBarButtonSpace());
}

emit sizeChanged(ts->getSize());
emit subpixelModeChanged(
ts->getSubpixelMode(), ts->isSquare(), ts->requiresOutline());
Expand Down
1 change: 0 additions & 1 deletion src/desktop/toolwidgets/brushsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ class BrushSettings final : public ToolSettings {
QWidget *getHeaderWidget() override;

bool isLocked() override;
bool keepTitleBarButtonSpace() const override { return true; }
void setMyPaintAllowed(bool myPaintAllowed);
void setCompatibilityMode(bool compatibilityMode);

Expand Down
2 changes: 0 additions & 2 deletions src/desktop/toolwidgets/toolsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ class ToolSettings : public QObject {
virtual bool affectsLayer() = 0;
virtual bool isLocked() { return false; }

virtual bool keepTitleBarButtonSpace() const { return false; }

public slots:
//! Toggle tool eraser mode (if it has one)
virtual void toggleEraserMode() {}
Expand Down

0 comments on commit b5eb405

Please sign in to comment.