X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FBasicBlockWidget.hxx;h=30eeb69d81ec30fa9c535645a76f020010c5f5bb;hp=215086d760b2cc7a03fb692fd75b71dc34b7790e;hb=7e983f239ca96faf5c8ba92cd4de54eba5235f75;hpb=87cd2baa79a6bbfaaad9d0c69bbf1fdb7462c20a diff --git a/src/gui/widgets/BasicBlockWidget.hxx b/src/gui/widgets/BasicBlockWidget.hxx index 215086d..30eeb69 100644 --- a/src/gui/widgets/BasicBlockWidget.hxx +++ b/src/gui/widgets/BasicBlockWidget.hxx @@ -46,6 +46,15 @@ public: QString getName() const { return name; } + + QColor setColor(const QColor& newColor) { + QColor lastcolor = currentColor; + currentColor = newColor; + return lastcolor; + } + + const QColor defaultColor = QColor(0xcc, 0xcc, 0xff, 0xff); + const QColor highlightColor = QColor(0xff, 0x99, 0xff, 0xff); private: void updateFunctionName(RenameFunctionEvent* event); void populateWidget(); @@ -54,6 +63,7 @@ private: uint32_t width, height; QString name; + QColor currentColor; std::unique_ptr _widget; QTextTable* _table; BasicBlock* block;