-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Update QgsColorButton to offer live color chooser updates a…
…nd show transparent checkerboard background - Add option to Options for live color chooser support (QgsColorDialog) - Add ability to define whether QgsColorButton accepts live updates (default: true) - Move QgsColorButton to single subclass of QPushButton - Show different button types relative to whether button has text - Add transparent checkerboard background for chosen colors with alpha < 255 - Fix triple-modal window issue for Mac (with regards to using native color dialog) - Composer item frame now supports transparency - Composer item background transparency support moved to color dialog - Composer composition grid now supports transparency
- Loading branch information
Showing
74 changed files
with
1,379 additions
and
1,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
/** \ingroup gui | ||
* \class QgsColorDialog | ||
* A dialog for selecting a color | ||
*/ | ||
|
||
class QgsColorDialog : QObject | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscolordialog.h> | ||
%End | ||
public: | ||
QgsColorDialog(); | ||
~QgsColorDialog(); | ||
|
||
/** Return a color selection from a QColorDialog, with live updating of interim selections. | ||
* @param initialColor The initial color of the selection dialog. | ||
* @param updateObject The receiver object of the live updating. | ||
* @param updateSlot The receiver object's slot for live updating (e.g. "setColor( const QColor& )" ). | ||
* @param parent Parent widget. Usually 0 is best for native system color dialogs. | ||
* @param title The title of the QColorDialog. | ||
* @param options ColorDialogOptions passed to QColorDialog. | ||
* @return Selected color on accepted() or initialColor on rejected(). | ||
*/ | ||
static QColor getLiveColor( const QColor& initialColor, QObject* updateObject, const char* updateSlot, | ||
QWidget* parent = 0, | ||
const QString& title = "", | ||
QColorDialog::ColorDialogOptions options = 0 ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.