Color button fixes.

This commit is contained in:
Jim Evins
2015-08-18 14:58:30 -04:00
parent 4ab105e06f
commit 4131bedba5
6 changed files with 14 additions and 4 deletions
+6 -3
View File
@@ -26,8 +26,8 @@
namespace
{
const int SWATCH_W = 100;
const int SWATCH_H = 24;
const int SWATCH_W = 24;
const int SWATCH_H = 24;
}
@@ -47,6 +47,7 @@ namespace glabels
setIcon( QIcon( ColorSwatch( SWATCH_W, SWATCH_H, color ) ) );
setText( "" );
setCheckable( true );
mDialog = new ColorPaletteDialog( defaultLabel, defaultColor, color );
mDialog->setModal( true );
@@ -130,10 +131,12 @@ namespace glabels
void ColorButton::onPaletteDialogChanged( ColorNode colorNode, bool isDefault )
{
setDown( false );
mColorNode = colorNode;
mIsDefault = isDefault;
emit colorChanged( colorNode, isDefault );
emit colorChanged();
}