Changeset d336730 for src/gui


Ignore:
Timestamp:
01/21/10 23:28:04 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
b8a3ad1
Parents:
c718a77
Message:

modifications to import-schedule dialog

  • closed automatically after parsing/importing schedule
Location:
src/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/gui/importscheduledialog.cpp

    rc718a77 rd336730  
    1616
    1717    mXmlParser = new ScheduleXmlParser(this);
    18     connect(mXmlParser, SIGNAL(progressStatus(int)), this, SLOT(showParsingProgress(int)));
     18    connect(mXmlParser, SIGNAL(progressStatus(int)), SLOT(showParsingProgress(int)));
     19    connect(mXmlParser, SIGNAL(parsingSchedule(const QString &)), SLOT(setWindowTitle(const QString &)));
     20
    1921    connect(import, SIGNAL(clicked()), SLOT(importSchedule()));
    2022    connect(search, SIGNAL(clicked()), SLOT(searchSchedule()));
     
    4042{
    4143    mScheduleFileName = QFileDialog::getOpenFileName(this, tr("Select Conference Schedule"), QDir::homePath(), tr("Schedule Files (*.xml)"));
    42     fileName->setText(mScheduleFileName);
    4344    if(QFile::exists(mScheduleFileName))
    4445        import->setEnabled(true);
     
    6465        progressBar->show();
    6566        mXmlParser->parseData(data,mSqlEngine);
     67        close();
    6668    }
    6769}
  • src/gui/importscheduledialog.ui

    rc718a77 rd336730  
    66    <x>0</x>
    77    <y>0</y>
    8     <width>408</width>
    9     <height>118</height>
     8    <width>330</width>
     9    <height>74</height>
    1010   </rect>
     11  </property>
     12  <property name="sizePolicy" >
     13   <sizepolicy vsizetype="MinimumExpanding" hsizetype="Preferred" >
     14    <horstretch>0</horstretch>
     15    <verstretch>0</verstretch>
     16   </sizepolicy>
    1117  </property>
    1218  <property name="windowTitle" >
     
    1622   <item row="0" column="0" >
    1723    <layout class="QVBoxLayout" name="verticalLayout" >
    18      <item>
    19       <layout class="QHBoxLayout" name="horizontalLayout" >
    20        <item>
    21         <widget class="QLabel" name="fileName" >
    22          <property name="text" >
    23           <string>Select conference schedule file</string>
    24          </property>
    25         </widget>
    26        </item>
    27        <item>
    28         <spacer name="horizontalSpacer" >
    29          <property name="orientation" >
    30           <enum>Qt::Horizontal</enum>
    31          </property>
    32          <property name="sizeHint" stdset="0" >
    33           <size>
    34            <width>40</width>
    35            <height>20</height>
    36           </size>
    37          </property>
    38         </spacer>
    39        </item>
    40        <item>
    41         <widget class="QPushButton" name="search" >
    42          <property name="text" >
    43           <string>Search</string>
    44          </property>
    45         </widget>
    46        </item>
    47       </layout>
    48      </item>
    4924     <item>
    5025      <widget class="QProgressBar" name="progressBar" >
     
    5934     <item>
    6035      <layout class="QHBoxLayout" name="horizontalLayout_2" >
     36       <item>
     37        <widget class="QPushButton" name="search" >
     38         <property name="text" >
     39          <string>Search</string>
     40         </property>
     41        </widget>
     42       </item>
    6143       <item>
    6244        <spacer name="horizontalSpacer_2" >
Note: See TracChangeset for help on using the changeset viewer.