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)
{
// appear to have duplicated here....
// widget_prefix->setVisible(false);
widget_reply_header->setVisible(false);
}
else

View File

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

View File

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

View File

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