[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Tue May 26 15:16:29 CEST 2009
SVN commit 973073 by prakash:
More changes to the ui of ObservingList. There are no oversized buttons or empty spaces now.
CCMAIL: kstars-devel at kde.org
M +6 -4 observinglist.cpp
M +74 -34 observinglist.ui
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #973072:973073
@@ -1065,17 +1065,19 @@
void ObservingList::slotChangeTab(int index)
{
if(index) {
- ui->AddToSession->hide();
+ //ui->AddToSession->hide();
ui->SetDate->show();
ui->SetLocation->show();
ui->timeEdit->show();
- ui->lineEdit->show();
+ //ui->lineEdit->show();
+ ui->SessionView->resizeColumnsToContents();
} else {
- ui->AddToSession->show();
+ //ui->AddToSession->show();
ui->SetDate->hide();
ui->SetLocation->hide();
ui->timeEdit->hide();
- ui->lineEdit->hide();
+ //ui->lineEdit->hide();
+ ui->TableView->resizeColumnsToContents();
}
ui->CenterButton->setEnabled( false );
ui->ScopeButton->setEnabled( false );
--- branches/kstars/summer/kstars/kstars/tools/observinglist.ui #973072:973073
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
- <width>663</width>
+ <width>783</width>
<height>713</height>
</rect>
</property>
@@ -358,12 +358,25 @@
</widget>
</item>
<item>
- <widget class="QPushButton" name="SetLocation">
+ <widget class="QPushButton" name="AddToSession">
+ <property name="maximumSize">
+ <size>
+ <width>120</width>
+ <height>30</height>
+ </size>
+ </property>
<property name="text">
- <string>Set Location</string>
+ <string>Add to Session</string>
</property>
</widget>
</item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <property name="topMargin">
+ <number>0</number>
+ </property>
<item>
<widget class="QPushButton" name="SetDate">
<property name="text">
@@ -372,13 +385,27 @@
</widget>
</item>
<item>
- <spacer>
+ <widget class="QPushButton" name="SetLocation">
+ <property name="text">
+ <string>Set Location</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QTimeEdit" name="timeEdit">
+ <property name="maximumSize">
+ <size>
+ <width>100</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
@@ -391,8 +418,14 @@
</item>
<item>
<widget class="QTabWidget" name="tabWidget">
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>200</height>
+ </size>
+ </property>
<property name="currentIndex">
- <number>1</number>
+ <number>0</number>
</property>
<widget class="QWidget" name="WishList">
<attribute name="title">
@@ -403,12 +436,12 @@
<rect>
<x>0</x>
<y>0</y>
- <width>635</width>
- <height>159</height>
+ <width>750</width>
+ <height>170</height>
</rect>
</property>
<property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@@ -434,18 +467,24 @@
<widget class="QTableView" name="SessionView">
<property name="geometry">
<rect>
- <x>10</x>
+ <x>0</x>
<y>0</y>
- <width>635</width>
- <height>159</height>
+ <width>750</width>
+ <height>170</height>
</rect>
</property>
<property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>150</height>
+ </size>
+ </property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
@@ -469,8 +508,11 @@
</property>
<item>
<widget class="AVTPlotWidget" name="View">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
<property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@@ -481,31 +523,29 @@
<height>200</height>
</size>
</property>
+ <property name="maximumSize">
+ <size>
+ <width>350</width>
+ <height>200</height>
+ </size>
+ </property>
<property name="cursor">
<cursorShape>CrossCursor</cursorShape>
</property>
</widget>
</item>
<item>
- <layout class="QGridLayout" name="gridLayout">
- <item row="2" column="0">
- <widget class="QTimeEdit" name="timeEdit"/>
- </item>
- <item row="3" column="0">
- <widget class="QLineEdit" name="lineEdit">
- <property name="text">
- <string>comments...</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <widget class="QPushButton" name="AddToSession">
- <property name="text">
- <string>Add to Session</string>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
</property>
- </widget>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
</item>
</layout>
</item>
More information about the Kstars-devel
mailing list