Skip to content
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a26b7f4
Add toolbar customization: separator, show/hide buttons, lock
FTA7700 May 17, 2026
4b87e1f
Add drag-to-reorder functionality to CustomizableToolBar
FTA7700 May 21, 2026
8ff49ca
Fix file encoding and line endings to UTF-8/LF
FTA7700 May 21, 2026
f8fc283
Fix drag reorder for edge separators
FTA7700 May 23, 2026
3076b78
Fix separator swap threshold for rightward drag
FTA7700 May 23, 2026
5d1ec50
Handle queue actions in toolbar customization: dynamic show/hide, sub…
FTA7700 May 26, 2026
72473e4
Fix menu bar preservation and drag shuffle for hidden buttons
FTA7700 May 27, 2026
7b2ba19
Fix menu bar preservation and uniform drag shuffle threshold
FTA7700 May 27, 2026
47662d5
Style fixes: asConst, const bool, include order, drag threshold
FTA7700 May 28, 2026
8890914
Style: parenthesize comparisons in boolean chains
FTA7700 May 30, 2026
b11d4b8
Drag: reduce swap threshold for sooner response
FTA7700 May 31, 2026
d3dc11b
Test #2: Drag feel improvements — smoother separator crossing and no …
FTA7700 Jun 6, 2026
2dc63d0
Style: add missing asConst() and parenthesize comparisons
FTA7700 Jun 7, 2026
d3308c9
Style: revert redundant asConst(); fix separator 1-tick asymmetry
FTA7700 Jun 9, 2026
f5c8f86
Test #3: correct movingLeft detection on first drag tick for symmetri…
FTA7700 Jun 9, 2026
5c3249d
Merge remote-tracking branch 'upstream/master' into feature/toolbar-c…
FTA7700 Jul 2, 2026
285d593
Merge remote-tracking branch 'upstream/master' into feature/toolbar-c…
FTA7700 Jul 17, 2026
bcc6bed
Fix: remove duplicate managePlugins() left over from previous merge
FTA7700 Jul 17, 2026
876e32e
Add Reset Toolbar Buttons option to empty-space context menu
FTA7700 Jul 21, 2026
39d173d
Address review feedback: destructor, access, naming, GPL headers, met…
FTA7700 Jul 24, 2026
3c65914
[Style]: Add braces to multi-line if conditions, fix header path, rev…
FTA7700 Jul 25, 2026
7d44010
Retrigger CI
FTA7700 Jul 25, 2026
7249294
Apply style fixes from glassez's review round
FTA7700 Aug 1, 2026
5938a68
Encapsulate toolbar state in CustomizableToolBar
FTA7700 Aug 2, 2026
9f43254
Hide disabled toolbar actions automatically
FTA7700 Aug 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/base/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,30 @@ void Preferences::setMainGeometry(const QByteArray &geometry)
setValue(u"MainWindow/geometry"_s, geometry);
}

QByteArray Preferences::getToolbarState() const
{
return value<QByteArray>(u"MainWindow/toolbarState"_s);
}

void Preferences::setToolbarState(const QByteArray &state)
{
if (state == getToolbarState())
return;
setValue(u"MainWindow/toolbarState"_s, state);
}

bool Preferences::isToolbarLocked() const
{
return value(u"MainWindow/toolbarLocked"_s, true);
}

void Preferences::setToolbarLocked(const bool locked)
{
if (locked == isToolbarLocked())
return;
setValue(u"MainWindow/toolbarLocked"_s, locked);
}

bool Preferences::isFiltersSidebarVisible() const
{
return value(u"GUI/MainWindow/FiltersSidebarVisible"_s, true);
Expand Down
4 changes: 4 additions & 0 deletions src/base/preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ class Preferences final : public QObject
void setDNSLastIP(const QString &ip);
QByteArray getMainGeometry() const;
void setMainGeometry(const QByteArray &geometry);
QByteArray getToolbarState() const;
void setToolbarState(const QByteArray &state);
bool isToolbarLocked() const;
void setToolbarLocked(const bool locked);
bool isFiltersSidebarVisible() const;
void setFiltersSidebarVisible(bool value);
int getFiltersSidebarWidth() const;
Expand Down
4 changes: 3 additions & 1 deletion src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ add_library(qbt_gui STATIC
log/logfiltermodel.h
log/loglistview.h
log/logmodel.h
customizabletoolbar.h

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect order.

mainwindow.h
optionsdialog.h
powermanagement/inhibitor.h
Expand Down Expand Up @@ -175,6 +176,7 @@ add_library(qbt_gui STATIC
log/logfiltermodel.cpp
log/loglistview.cpp
log/logmodel.cpp
customizabletoolbar.cpp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

mainwindow.cpp
optionsdialog.cpp
powermanagement/inhibitor.cpp
Expand Down Expand Up @@ -261,7 +263,7 @@ add_library(qbt_gui STATIC
target_sources(qbt_gui INTERFACE about.qrc)

# UI headers will be generated in ${CMAKE_CURRENT_BINARY_DIR}
target_include_directories(qbt_gui PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(qbt_gui PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
Comment thread
glassez marked this conversation as resolved.
Outdated

target_link_libraries(qbt_gui
PRIVATE
Expand Down
Loading
Loading