fixed QT issues
This commit is contained in:
parent
956bb26211
commit
35b26094ae
3 changed files with 32 additions and 6 deletions
|
@ -35,7 +35,7 @@ CChannelFader::CChannelFader ( QWidget* pNW,
|
||||||
pParentLayout ( pNPtLy )
|
pParentLayout ( pNPtLy )
|
||||||
{
|
{
|
||||||
// create new GUI control objects and store pointers to them
|
// create new GUI control objects and store pointers to them
|
||||||
pMainGrid = new QGridLayout ( pNW, 2, 1 );
|
pMainGrid = new QGridLayout ( 2, 1 );
|
||||||
pFader = new QSlider ( Qt::Vertical, pNW );
|
pFader = new QSlider ( Qt::Vertical, pNW );
|
||||||
pLabel = new QLabel ( "", pNW );
|
pLabel = new QLabel ( "", pNW );
|
||||||
|
|
||||||
|
@ -75,15 +75,20 @@ void CChannelFader::OnValueChanged ( int value )
|
||||||
|
|
||||||
void CChannelFader::SetText ( const std::string sText )
|
void CChannelFader::SetText ( const std::string sText )
|
||||||
{
|
{
|
||||||
const int iBreakPos = 6;
|
const int iBreakPos = 7;
|
||||||
|
|
||||||
// break text at predefined position
|
// break text at predefined position, if text is too short, break anyway to
|
||||||
|
// make sure we have two lines for fader tag
|
||||||
QString sModText = sText.c_str();
|
QString sModText = sText.c_str();
|
||||||
|
|
||||||
if ( sModText.length() > iBreakPos )
|
if ( sModText.length() > iBreakPos )
|
||||||
{
|
{
|
||||||
sModText.insert ( iBreakPos, QString ( "<br>" ) );
|
sModText.insert ( iBreakPos, QString ( "<br>" ) );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sModText.append ( QString ( "<br>" ) );
|
||||||
|
}
|
||||||
|
|
||||||
// use bold text
|
// use bold text
|
||||||
sModText.prepend ( "<b>" );
|
sModText.prepend ( "<b>" );
|
||||||
|
|
|
@ -56,7 +56,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
|
|
||||||
QString strFaderTag = tr("<b>Fader Tag:</b> In this edit control, "
|
QString strFaderTag = tr("<b>Fader Tag:</b> In this edit control, "
|
||||||
"the tag string of your fader can be set. This tag will appear "
|
"the tag string of your fader can be set. This tag will appear "
|
||||||
"at your fader on the mixer board.");
|
"at your fader on the mixer board when connected to the server.");
|
||||||
QWhatsThis::add(TextLabelServerTag, strFaderTag);
|
QWhatsThis::add(TextLabelServerTag, strFaderTag);
|
||||||
QWhatsThis::add(LineEditFaderTag, strFaderTag);
|
QWhatsThis::add(LineEditFaderTag, strFaderTag);
|
||||||
|
|
||||||
|
@ -141,6 +141,10 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
pSettingsMenu->insertItem ( tr ( "&General Settings..." ), this,
|
pSettingsMenu->insertItem ( tr ( "&General Settings..." ), this,
|
||||||
SLOT ( OnOpenGeneralSettings() ) );
|
SLOT ( OnOpenGeneralSettings() ) );
|
||||||
|
|
||||||
|
pSettingsMenu->insertSeparator();
|
||||||
|
pSettingsMenu->insertItem ( tr ( "E&xit" ), this,
|
||||||
|
SLOT ( close() ), CTRL+Key_Q );
|
||||||
|
|
||||||
|
|
||||||
/* Main menu bar -------------------------------------------------------- */
|
/* Main menu bar -------------------------------------------------------- */
|
||||||
pMenu = new QMenuBar ( this );
|
pMenu = new QMenuBar ( this );
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>580</width>
|
<width>594</width>
|
||||||
<height>289</height>
|
<height>319</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
|
@ -340,6 +340,23 @@
|
||||||
<number>15</number>
|
<number>15</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
</hbox>
|
||||||
|
</widget>
|
||||||
|
<widget>
|
||||||
|
<class>QLayoutWidget</class>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>name</name>
|
||||||
|
<cstring>Layout10</cstring>
|
||||||
|
</property>
|
||||||
|
<hbox>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>margin</name>
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>spacing</name>
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property>
|
<property>
|
||||||
<name>name</name>
|
<name>name</name>
|
||||||
|
|
Loading…
Reference in a new issue