#include "SUPERVGUI_View.h"
#include "SUPERVGUI_Main.h"
#include "QAD_Config.h"
-
+#include <qcolordialog.h>
#if QT_VERSION >= 0x030005
myPopup->insertItem(tr("MSG_COPY_DATAFLOW"), main, SLOT(copy()));
myPopup->insertItem(tr("MSG_FILTER_NOTIFY"), main, SLOT(filterNotification()));
+ myPopup->insertSeparator();
+ myPopup->insertItem(tr("MSG_CHANGE_BACKGROUND"), this, SLOT(changeBackground()));
+
QString aRed = QAD_CONFIG->getSetting("SUPERVGraph:BackgroundColorRed");
QString aGreen = QAD_CONFIG->getSetting("SUPERVGraph:BackgroundColorGreen");
QString aBlue = QAD_CONFIG->getSetting("SUPERVGraph:BackgroundColorBlue");
int SUPERVGUI_View::getLastY() {
return myLastY;
}
+void SUPERVGUI_View::changeBackground()
+{
+ QColor selColor = QColorDialog::getColor(viewport()->paletteBackgroundColor(), this );
+ if ( selColor.isValid() ) {
+ setPaletteBackgroundColor( selColor );
+ }
+}