1
0
Fork 0

GUI: Eliminate unused emit / stylize. Needs to be checked.

This commit is contained in:
Nukem 2015-11-10 19:36:04 -05:00
parent 285e0c16c0
commit 3529e9a2ea
5 changed files with 5 additions and 16 deletions

View File

@ -171,7 +171,7 @@ void AbstractTableView::paintEvent(QPaintEvent* event)
y = getHeaderHeight();
x += getColumnWidth(j);
}
emit repainted();
//emit repainted();
}

View File

@ -79,7 +79,8 @@ void Disassembly::fontsUpdated()
*/
QString Disassembly::paintContent(QPainter* painter, dsint rowBase, int rowOffset, int col, int x, int y, int w, int h)
{
Q_UNUSED(rowBase)
Q_UNUSED(rowBase);
if(mHighlightingMode)
{
QPen pen(ConfigColor("InstructionHighlightColor"));
@ -412,9 +413,6 @@ QString Disassembly::paintContent(QPainter* painter, dsint rowBase, int rowOffse
}
}
break;
default:
break;
}
return "";
}

View File

@ -405,17 +405,6 @@ void CPUSideBar::drawStraightArrow(QPainter* painter, int x1, int y1, int x2, in
{
painter->drawLine(x1, y1, x2, y2);
/*
// this does not work
QPainterPath path;
path.moveTo( QPointF(x2, x2));
path.lineTo (QPointF(x2-ArrowSizeX,y2-ArrowSizeY));
path.lineTo (QPointF(x2-ArrowSizeX,y2+ArrowSizeY));
path.closeSubpath();
painter->setPen (Qt :: NoPen);
painter->fillPath (path, QBrush (color));*/
const int ArrowSizeX = 4; // width of arrow tip in pixel
const int ArrowSizeY = 4; // height of arrow tip in pixel

View File

@ -8,6 +8,7 @@ class CPUSideBar : public QAbstractScrollArea
{
Q_OBJECT
QPair<dsint, dsint> mHighlightedJump;
public:
explicit CPUSideBar(CPUDisassembly* Ptr, QWidget* parent = 0);
QSize sizeHint() const;

View File

@ -17,6 +17,7 @@ class QMainWindow;
class MHTabBar: public QTabBar
{
Q_OBJECT
public:
MHTabBar(QWidget* parent, bool allowDetach, bool allowDelete);
~MHTabBar(void);