mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Minor changes. Added a sweet tooltip :)
This commit is contained in:
parent
f3121e1bf6
commit
1ecdec7a5e
4 changed files with 42 additions and 31 deletions
|
@ -162,51 +162,51 @@
|
|||
<name>RunningScriptsWidget</name>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="14"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="121"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="126"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="34"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="122"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="38"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="127"/>
|
||||
<source><html><head/><body><p><span style=" font-size:18pt;">Running Scripts</span></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="51"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="123"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="61"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="128"/>
|
||||
<source><html><head/><body><p><span style=" font-weight:600;">Currently running</span></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="76"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="124"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="86"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="129"/>
|
||||
<source>Reload all</source>
|
||||
<oldsource>Reload All</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="102"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="125"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="112"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="130"/>
|
||||
<source>Stop all</source>
|
||||
<oldsource>Stop All</oldsource>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="123"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="126"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="133"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="131"/>
|
||||
<source><html><head/><body><p><span style=" font-weight:600;">Recently loaded</span></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="140"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="127"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="150"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="132"/>
|
||||
<source>(click a script or use the 1-9 keys to load and run it)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="188"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="129"/>
|
||||
<location filename="ui/runningScriptsWidget.ui" line="198"/>
|
||||
<location filename="../build/interface/ui_runningScriptsWidget.h" line="134"/>
|
||||
<source>There are no scripts currently running.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -143,18 +143,18 @@ void RunningScriptsWidget::keyPressEvent(QKeyEvent *e)
|
|||
void RunningScriptsWidget::paintEvent(QPaintEvent *)
|
||||
{
|
||||
QPainter painter(this);
|
||||
painter.setPen(QColor::fromRgb(196, 196, 196));
|
||||
painter.setPen(QColor::fromRgb(225, 225, 225));
|
||||
|
||||
if (ui->currentlyRunningLabel->isVisible()) {
|
||||
// line below the 'Currently Running' label
|
||||
painter.drawLine(20, ui->currentlyRunningLabel->y() + ui->currentlyRunningLabel->height(),
|
||||
width() - 21, ui->currentlyRunningLabel->y() + ui->currentlyRunningLabel->height());
|
||||
painter.drawLine(21, ui->currentlyRunningLabel->y() + ui->currentlyRunningLabel->height(),
|
||||
width() - 22, ui->currentlyRunningLabel->y() + ui->currentlyRunningLabel->height());
|
||||
}
|
||||
|
||||
if (ui->recentlyLoadedLabel->isVisible()) {
|
||||
// line below the 'Recently loaded' label
|
||||
painter.drawLine(20, ui->recentlyLoadedLabel->y() + ui->recentlyLoadedLabel->height(),
|
||||
width() - 21, ui->recentlyLoadedLabel->y() + ui->recentlyLoadedLabel->height());
|
||||
painter.drawLine(21, ui->recentlyLoadedLabel->y() + ui->recentlyLoadedLabel->height(),
|
||||
width() - 22, ui->recentlyLoadedLabel->y() + ui->recentlyLoadedLabel->height());
|
||||
}
|
||||
|
||||
painter.end();
|
||||
|
|
|
@ -19,18 +19,20 @@ ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) :
|
|||
setShowGrid(false);
|
||||
setSelectionMode(QAbstractItemView::NoSelection);
|
||||
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
setStyleSheet("background: transparent;");
|
||||
setStyleSheet("QTableWidget { background: transparent; color: #333333; } QToolTip { color: #000000; background: #fdeba5; padding: 2px; }");
|
||||
setToolTipDuration(200);
|
||||
setWordWrap(true);
|
||||
setGeometry(0, 0, parent->width(), parent->height());
|
||||
}
|
||||
|
||||
void ScriptsTableWidget::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
QPainter painter(viewport());
|
||||
painter.setPen(QColor::fromRgb(196, 196, 196));
|
||||
painter.setPen(QColor::fromRgb(225, 225, 225));
|
||||
|
||||
int y = 0;
|
||||
for (int i = 0; i < rowCount(); ++i) {
|
||||
painter.drawLine(0, rowHeight(i) + y, width(), rowHeight(i) + y);
|
||||
painter.drawLine(6, rowHeight(i) + y, width(), rowHeight(i) + y);
|
||||
y += rowHeight(i);
|
||||
}
|
||||
painter.end();
|
||||
|
|
|
@ -14,15 +14,19 @@
|
|||
<string>Form</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background: #f7f7f7;
|
||||
font-family: Helvetica, Arial, "DejaVu Sans"; </string>
|
||||
<string notr="true">* {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
}
|
||||
QWidget {
|
||||
background: #f7f7f7;
|
||||
}</string>
|
||||
</property>
|
||||
<widget class="QLabel" name="widgetTitle">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>10</y>
|
||||
<width>221</width>
|
||||
<width>251</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -33,6 +37,12 @@ font-size: 20pt;</string>
|
|||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-size:18pt;">Running Scripts</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="indent">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="currentlyRunningLabel">
|
||||
<property name="geometry">
|
||||
|
@ -45,7 +55,7 @@ font-size: 20pt;</string>
|
|||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: #0e7077;
|
||||
font-size: 14pt;</string>
|
||||
font: bold 14pt;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-weight:600;">Currently running</span></p></body></html></string>
|
||||
|
@ -70,7 +80,7 @@ font-size: 14pt;</string>
|
|||
<string notr="true">background: #0e7077;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font: 14pt 75pt;</string>
|
||||
font: bold 14pt;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reload all</string>
|
||||
|
@ -96,7 +106,7 @@ font: 14pt 75pt;</string>
|
|||
<string notr="true">background: #0e7077;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font: 14pt 75pt;</string>
|
||||
font: bold 14pt;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop all</string>
|
||||
|
@ -117,7 +127,7 @@ font: 14pt 75pt;</string>
|
|||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: #0e7077;
|
||||
font-size: 14pt;</string>
|
||||
font: bold 14pt;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-weight:600;">Recently loaded</span></p></body></html></string>
|
||||
|
@ -204,7 +214,6 @@ font-size: 14pt;</string>
|
|||
<string notr="true">background: transparent;
|
||||
font-size: 14pt;</string>
|
||||
</property>
|
||||
<zorder>reloadAllButton</zorder>
|
||||
</widget>
|
||||
<widget class="QWidget" name="runningScriptsTableWidget" native="true">
|
||||
<property name="geometry">
|
||||
|
|
Loading…
Reference in a new issue