History

Minor changes. Added a sweet tooltip :)

Mohammed Nafees committed 12 years ago

Commit 1ecdec71 parent f3121e14 files · +42 −31Browse files

Showing the changes to interface/src/ui/ScriptsTableWidget.cpp (1 of 4 files). Show all

Unified · Split

interface/src/ui/ScriptsTableWidget.cpp+5−3
@@ -19,18 +19,20 @@ ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) : · 18 unmodified lines
1919 setShowGrid(false);
2020 setSelectionMode(QAbstractItemView::NoSelection);
2121 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);
2325 setGeometry(0, 0, parent->width(), parent->height());
2426 }
2527
2628 void ScriptsTableWidget::paintEvent(QPaintEvent *event)
2729 {
2830 QPainter painter(viewport());
29− painter.setPen(QColor::fromRgb(196, 196, 196));
31+ painter.setPen(QColor::fromRgb(225, 225, 225));
3032
3133 int y = 0;
3234 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);
3436 y += rowHeight(i);
3537 }
3638 painter.end();