Skip to content

Commit

Permalink
fix ui warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kupiqu committed Dec 29, 2019
1 parent 0644181 commit c038b4e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

project(sierrabreezeenhanced)
set(PROJECT_VERSION "0.8.9")
set(PROJECT_VERSION "0.8.10")
set(PROJECT_VERSION_MAJOR 0)

cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
V0.8.10
---------

* fix ui warning

V0.8.9
---------

Expand Down
10 changes: 5 additions & 5 deletions config/breezeconfigwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace Breeze
// track ui changes
connect( m_ui.titleAlignment, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) );
connect( m_ui.buttonSize, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) );
connect( m_ui.btnSpacingSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), [=](int /*i*/){updateChanged();} );
connect( m_ui.buttonSpacing, QOverload<int>::of(&QSpinBox::valueChanged), [=](int /*i*/){updateChanged();} );
connect( m_ui.buttonPadding, SIGNAL(valueChanged(int)), SLOT(updateChanged()) );
connect( m_ui.unisonHovering, SIGNAL(clicked()), SLOT(updateChanged()) );
connect( m_ui.cornerRadiusSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), [=](int /*i*/){updateChanged();} );
Expand Down Expand Up @@ -92,7 +92,7 @@ namespace Breeze
// assign to ui
m_ui.titleAlignment->setCurrentIndex( m_internalSettings->titleAlignment() );
m_ui.buttonSize->setCurrentIndex( m_internalSettings->buttonSize() );
m_ui.btnSpacingSpinBox->setValue( m_internalSettings->buttonSpacing() );
m_ui.buttonSpacing->setValue( m_internalSettings->buttonSpacing() );
m_ui.buttonPadding->setValue( m_internalSettings->buttonPadding() );
m_ui.unisonHovering->setChecked( m_internalSettings->unisonHovering() );
m_ui.cornerRadiusSpinBox->setValue( m_internalSettings->cornerRadius() );
Expand Down Expand Up @@ -141,7 +141,7 @@ namespace Breeze
// apply modifications from ui
m_internalSettings->setTitleAlignment( m_ui.titleAlignment->currentIndex() );
m_internalSettings->setButtonSize( m_ui.buttonSize->currentIndex() );
m_internalSettings->setButtonSpacing( m_ui.btnSpacingSpinBox->value() );
m_internalSettings->setButtonSpacing( m_ui.buttonSpacing->value() );
m_internalSettings->setButtonPadding( m_ui.buttonPadding->value() );
m_internalSettings->setUnisonHovering( m_ui.unisonHovering->isChecked() );
m_internalSettings->setCornerRadius( m_ui.cornerRadiusSpinBox->value() );
Expand Down Expand Up @@ -204,7 +204,7 @@ namespace Breeze
// assign to ui
m_ui.titleAlignment->setCurrentIndex( m_internalSettings->titleAlignment() );
m_ui.buttonSize->setCurrentIndex( m_internalSettings->buttonSize() );
m_ui.btnSpacingSpinBox->setValue( m_internalSettings->buttonSpacing() );
m_ui.buttonSpacing->setValue( m_internalSettings->buttonSpacing() );
m_ui.buttonPadding->setValue( m_internalSettings->buttonPadding() );
m_ui.unisonHovering->setChecked( m_internalSettings->unisonHovering() );
m_ui.cornerRadiusSpinBox->setValue( m_internalSettings->cornerRadius() );
Expand Down Expand Up @@ -246,7 +246,7 @@ namespace Breeze

if( m_ui.titleAlignment->currentIndex() != m_internalSettings->titleAlignment() ) modified = true;
else if( m_ui.buttonSize->currentIndex() != m_internalSettings->buttonSize() ) modified = true;
else if( m_ui.btnSpacingSpinBox->value() != m_internalSettings->buttonSpacing() ) modified = true;
else if( m_ui.buttonSpacing->value() != m_internalSettings->buttonSpacing() ) modified = true;
else if ( m_ui.buttonPadding->value() != m_internalSettings->buttonPadding() ) modified = true;
else if( m_ui.unisonHovering->isChecked() != m_internalSettings->unisonHovering() ) modified = true;
else if( m_ui.cornerRadiusSpinBox->value() != m_internalSettings->cornerRadius() ) modified = true;
Expand Down
11 changes: 7 additions & 4 deletions config/ui/breezeconfigurationui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="btnSpacingLabel">
<widget class="QLabel" name="buttonSpacingLabel">
<property name="text">
<string>Button spacing:</string>
</property>
<property name="buddy">
<cstring>buttonSpacing</cstring>
</property>
</widget>
</item>
<item row="6" column="1">
Expand Down Expand Up @@ -132,7 +135,7 @@
</widget>
</item>
<item row="3" column="2">
<widget class="QSpinBox" name="btnSpacingSpinBox">
<widget class="QSpinBox" name="buttonSpacing">
<property name="suffix">
<string> px</string>
</property>
Expand Down Expand Up @@ -163,7 +166,7 @@
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>buttonSpacing</cstring>
<cstring>buttonPadding</cstring>
</property>
</widget>
</item>
Expand Down Expand Up @@ -751,7 +754,7 @@
<tabstop>titleAlignment</tabstop>
<tabstop>buttonSize</tabstop>
<tabstop>buttonStyle</tabstop>
<tabstop>btnSpacingSpinBox</tabstop>
<tabstop>buttonSpacing</tabstop>
<tabstop>buttonPadding</tabstop>
<tabstop>hideTitleBar</tabstop>
<tabstop>matchColorForTitleBar</tabstop>
Expand Down

0 comments on commit c038b4e

Please sign in to comment.