Add a QSplitter between left/right text window. Note that lines 5604-08 may need fixing.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8375 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-12-25 21:16:02 +00:00
parent 7a83378913
commit 6ebf71e4e0
2 changed files with 2201 additions and 2220 deletions

View File

@ -2243,9 +2243,9 @@ void MainWindow::hideMenus(bool checked)
ui->label_6->setVisible(!checked); ui->label_6->setVisible(!checked);
ui->label_7->setVisible(!checked); ui->label_7->setVisible(!checked);
ui->decodedTextLabel2->setVisible(!checked); ui->decodedTextLabel2->setVisible(!checked);
ui->line_2->setVisible(!checked); // ui->line_2->setVisible(!checked);
} }
ui->line->setVisible(!checked); // ui->line->setVisible(!checked);
ui->decodedTextLabel->setVisible(!checked); ui->decodedTextLabel->setVisible(!checked);
ui->gridLayout_5->layout()->setSpacing(spacing); ui->gridLayout_5->layout()->setSpacing(spacing);
ui->horizontalLayout->layout()->setSpacing(spacing); ui->horizontalLayout->layout()->setSpacing(spacing);
@ -5601,11 +5601,11 @@ void MainWindow::enable_DXCC_entity (bool on)
{ {
if (on and !m_mode.startsWith ("WSPR") and m_mode!="Echo") { if (on and !m_mode.startsWith ("WSPR") and m_mode!="Echo") {
m_logBook.init(); // re-read the log and cty.dat files m_logBook.init(); // re-read the log and cty.dat files
ui->gridLayout->setColumnStretch(0,55); // adjust proportions of text displays // ui->gridLayout->setColumnStretch(0,55); // adjust proportions of text displays
ui->gridLayout->setColumnStretch(1,45); // ui->gridLayout->setColumnStretch(1,45);
} else { } else {
ui->gridLayout->setColumnStretch(0,0); // ui->gridLayout->setColumnStretch(0,0);
ui->gridLayout->setColumnStretch(1,0); // ui->gridLayout->setColumnStretch(1,0);
} }
updateGeometry (); updateGeometry ();
} }

View File

@ -17,18 +17,15 @@
<string notr="true"/> <string notr="true"/>
</property> </property>
<widget class="QWidget" name="centralWidget"> <widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QWidget" name="">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout" stretch="1,0,0">
<item>
<layout class="QGridLayout" name="gridLayout" columnstretch="2,1">
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="verticalSpacing">
<number>1</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -51,17 +48,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item>
<widget class="Line" name="line_2">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="decodedTextLabel"> <widget class="QLabel" name="decodedTextLabel">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
@ -153,17 +140,59 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item>
<widget class="Line" name="line"> <widget class="DisplayText" name="decodedTextBrowser">
<property name="frameShadow"> <property name="sizePolicy">
<enum>QFrame::Plain</enum> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>10</verstretch>
</sizepolicy>
</property> </property>
<property name="orientation"> <property name="minimumSize">
<enum>Qt::Horizontal</enum> <size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="cursorWidth">
<number>0</number>
</property>
<property name="textInteractionFlags">
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> </layout>
</widget>
<widget class="QWidget" name="">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Rx Frequency</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="decodedTextLabel2"> <widget class="QLabel" name="decodedTextLabel2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
@ -255,7 +284,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item>
<widget class="DisplayText" name="decodedTextBrowser2"> <widget class="DisplayText" name="decodedTextBrowser2">
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
@ -283,55 +312,9 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Rx Frequency</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="DisplayText" name="decodedTextBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>10</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="cursorWidth">
<number>0</number>
</property>
<property name="textInteractionFlags">
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout> </layout>
</widget>
</widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,2,2,2,2,2,2,2,2,2,1"> <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,2,2,2,2,2,2,2,2,2,1">
@ -2631,8 +2614,6 @@ QPushButton[state=&quot;ok&quot;] {
</layout> </layout>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
<widget class="QMenuBar" name="menuBar"> <widget class="QMenuBar" name="menuBar">
<property name="geometry"> <property name="geometry">