fixup button labels are prefix headers

This commit is contained in:
drbob 2020-05-17 19:56:58 +10:00
parent f585b7a629
commit 3312faf3ea
4 changed files with 20 additions and 62 deletions

View File

@ -124,8 +124,6 @@ void PulseReply::setReferenceString(QString ref)
{ {
if (ref.size() == 0) if (ref.size() == 0)
{ {
// appear to have duplicated here....
// widget_prefix->setVisible(false);
widget_reply_header->setVisible(false); widget_reply_header->setVisible(false);
} }
else else

View File

@ -152,7 +152,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_reply"> <widget class="QToolButton" name="toolButton_reply">
<property name="text"> <property name="text">
<string>RPL</string> <string>REPLY</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -196,7 +196,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_republish"> <widget class="QToolButton" name="toolButton_republish">
<property name="text"> <property name="text">
<string>RET</string> <string>REPUBLISH</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -240,7 +240,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_like"> <widget class="QToolButton" name="toolButton_like">
<property name="text"> <property name="text">
<string>LIK</string> <string>LIKE</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -284,32 +284,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_view"> <widget class="QToolButton" name="toolButton_view">
<property name="text"> <property name="text">
<string>LNK</string> <string>SHOW</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_links">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<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>
<property name="text">
<string>1</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -106,7 +106,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QPushButton" name="pushButton_tmpViewParent"> <widget class="QPushButton" name="pushButton_tmpViewParent">
<property name="text"> <property name="text">
<string>TMP VIEW PARENT</string> <string>SHOW PARENT</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -229,8 +229,14 @@ border-radius: 10px}</string>
</item> </item>
<item row="1" column="2"> <item row="1" column="2">
<widget class="QPushButton" name="pushButton_tmpViewGroup"> <widget class="QPushButton" name="pushButton_tmpViewGroup">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="text"> <property name="text">
<string>TMP VIEW</string> <string>SHOW GROUP</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -464,7 +470,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_reply"> <widget class="QToolButton" name="toolButton_reply">
<property name="text"> <property name="text">
<string>RPL</string> <string>REPLY</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -508,7 +514,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_republish"> <widget class="QToolButton" name="toolButton_republish">
<property name="text"> <property name="text">
<string>RET</string> <string>REPUBLISH</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -552,7 +558,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_like"> <widget class="QToolButton" name="toolButton_like">
<property name="text"> <property name="text">
<string>LIK</string> <string>LIKE</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -596,32 +602,7 @@ border-radius: 10px}</string>
<item> <item>
<widget class="QToolButton" name="toolButton_view"> <widget class="QToolButton" name="toolButton_view">
<property name="text"> <property name="text">
<string>LNK</string> <string>SHOW</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_links">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<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>
<property name="text">
<string>1</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -294,6 +294,10 @@ void PulseDataItem::showPulse()
{ {
setReference(mPulse->mPulseType & WIRE_PULSE_RESPONSE_MASK, mPulse->mRefGroupId, mPulse->mRefGroupName); setReference(mPulse->mPulseType & WIRE_PULSE_RESPONSE_MASK, mPulse->mRefGroupId, mPulse->mRefGroupName);
} }
else
{
setReference(0, mPulse->mRefGroupId, mPulse->mRefGroupName);
}
} }
} }