Showing the changes to interface/src/ui/ScriptsTableWidget.cpp (1 of 4 files). Show all
Unified · Split
| @@ -19,18 +19,20 @@ ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) : · 18 unmodified lines | ||
| 19 | 19 | setShowGrid(false); |
| 20 | 20 | setSelectionMode(QAbstractItemView::NoSelection); |
| 21 | 21 | setEditTriggers(QAbstractItemView::NoEditTriggers); |
| 22 | − setStyleSheet("background: transparent;"); | |
| 22 | + setStyleSheet("QTableWidget { background: transparent; color: #333333; } QToolTip { color: #000000; background: #fdeba5; padding: 2px; }"); | |
| 23 | + setToolTipDuration(200); | |
| 24 | + setWordWrap(true); | |
| 23 | 25 | setGeometry(0, 0, parent->width(), parent->height()); |
| 24 | 26 | } |
| 25 | 27 | |
| 26 | 28 | void ScriptsTableWidget::paintEvent(QPaintEvent *event) |
| 27 | 29 | { |
| 28 | 30 | QPainter painter(viewport()); |
| 29 | − painter.setPen(QColor::fromRgb(196, 196, 196)); | |
| 31 | + painter.setPen(QColor::fromRgb(225, 225, 225)); | |
| 30 | 32 | |
| 31 | 33 | int y = 0; |
| 32 | 34 | for (int i = 0; i < rowCount(); ++i) { |
| 33 | − painter.drawLine(0, rowHeight(i) + y, width(), rowHeight(i) + y); | |
| 35 | + painter.drawLine(6, rowHeight(i) + y, width(), rowHeight(i) + y); | |
| 34 | 36 | y += rowHeight(i); |
| 35 | 37 | } |
| 36 | 38 | painter.end(); |