Skip to content

Commit

Permalink
修改输出信息默认颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
wuuhii committed Sep 14, 2019
1 parent fbdb331 commit 11c14ce
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 67 deletions.
2 changes: 2 additions & 0 deletions Src/Common/SAKDebugPage/Message/DebugPageMessageManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ void DebugPageMessageManager::outputMessage(QString msg, bool isInfoMsg)
messageTextBrowser->append(time);

if (isInfoMsg){
#if 0
msg = QString("<font color=blue>%1</font>").arg(msg);
#endif
}else{
msg = QString("<font color=red>%1</font>").arg(msg);
QApplication::beep();
Expand Down
134 changes: 67 additions & 67 deletions Src/Common/SAKDebugPage/SAKDebugPage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1220</width>
<height>617</height>
<height>669</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -458,17 +458,67 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<widget class="QGroupBox" name="groupBox_4">
<property name="maximumSize">
<size>
<width>20</width>
<height>40</height>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</spacer>
<property name="title">
<string>消息输出</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<property name="topMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>清空消息</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QTextBrowser" name="messageTextBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="charGroupBox">
Expand Down Expand Up @@ -635,67 +685,17 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="maximumSize">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>16777215</width>
<height>16777215</height>
<width>20</width>
<height>40</height>
</size>
</property>
<property name="title">
<string>消息输出</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<property name="topMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>清空消息</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QTextBrowser" name="messageTextBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
Expand Down

0 comments on commit 11c14ce

Please sign in to comment.