X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FBasicBlockWidget.hxx;h=ba1153ebacde883767cae2f42b39f0d37cc02e4e;hb=be25639ecafa1ec2d37c8e2d6c8225c12ddb59ff;hp=215086d760b2cc7a03fb692fd75b71dc34b7790e;hpb=9fd091260777a95432902173a35e15a475f6f9f9;p=frida%2Ffrida.git diff --git a/src/gui/widgets/BasicBlockWidget.hxx b/src/gui/widgets/BasicBlockWidget.hxx index 215086d..ba1153e 100644 --- a/src/gui/widgets/BasicBlockWidget.hxx +++ b/src/gui/widgets/BasicBlockWidget.hxx @@ -1,7 +1,7 @@ #ifndef INCLUDE__BasicBlockWidget_hxx #define INCLUDE__BasicBlockWidget_hxx -#include "gui/qt.hxx" +#include "qt.hxx" #include #include #include @@ -46,14 +46,25 @@ 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(); void changeCommentHandler(ChangeCommentEvent* event); QString formatComments(Instruction* inst); + void updateSize(); uint32_t width, height; QString name; + QColor currentColor; std::unique_ptr _widget; QTextTable* _table; BasicBlock* block;