[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Tue Mar 30 01:14:26 CEST 2010
SVN commit 1108867 by zhang:
continue kst1kde4
M +4 -4 changefiledialog.ui
M +3 -3 kstchangefiledialog.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/changefiledialog.ui #1108866:1108867
@@ -44,7 +44,7 @@
<item row="0" column="1">
<layout class="QHBoxLayout">
<item>
- <widget class="KURLRequester" name="_dataFile" native="true"/>
+ <widget class="KUrlRequester" name="_dataFile" native="true"/>
</item>
</layout>
</item>
@@ -240,7 +240,7 @@
<item row="2" column="0">
<layout class="QGridLayout">
<item row="0" column="0" rowspan="5">
- <widget class="QListBox" name="ChangeFileCurveList">
+ <widget class="QListWidget" name="ChangeFileCurveList">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>1</horstretch>
@@ -250,8 +250,8 @@
<property name="whatsThis">
<string>The source file for the vectors selected in this list will be changed.</string>
</property>
- <property name="selectionMode">
- <enum>QListBox::Extended</enum>
+ <property name="SelectionMode">
+ <enum>QListWidget::ExtendedSelection</enum>
</property>
</widget>
</item>
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstchangefiledialog.cpp #1108866:1108867
@@ -76,7 +76,7 @@
void KstChangeFileDialog::selectAll() {
- ChangeFileCurveList->selectAll(true);
+ ChangeFileCurveList->selectAll();
}
@@ -148,12 +148,12 @@
_configureSource->setEnabled(false);
_file = QString::null;
if (!text.isEmpty() && text != "stdin" && text != "-") {
- KURL url;
+ KUrl url;
QString txt = _dataFile->completionObject()->replacedPath(text);
if (QFile::exists(txt) && QFileInfo(txt).isRelative()) {
url.setPath(txt);
} else {
- url = KURL::fromPathOrURL(txt);
+ url = KUrl::fromPathOrURL(txt);
}
if (!url.isLocalFile() && url.protocol() != "file" && !url.protocol().isEmpty()) {
More information about the Kst
mailing list