Commit 5f8ab2bc authored by Michael Pyne's avatar Michael Pyne

More kde3support removal patches from Georg Grabler. This time JuK's delete dialog is

fully ported over.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=1006062
parent bb8c208f
......@@ -50,7 +50,7 @@ DeleteWidget::DeleteWidget(QWidget *parent)
void DeleteWidget::setFiles(const QStringList &files)
{
m_ui->ddFileList->clear();
m_ui->ddFileList->insertStringList(files);
m_ui->ddFileList->insertItems(0, files);
m_ui->ddNumFiles->setText(i18np("<b>1</b> file selected.", "<b>%1</b> files selected.", files.count()));
}
......
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DeleteDialogBase</class>
<widget class="QWidget" name="DeleteDialogBase" >
<property name="geometry" >
<widget class="QWidget" name="DeleteDialogBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
......@@ -9,75 +10,73 @@
<height>374</height>
</rect>
</property>
<property name="minimumSize" >
<property name="minimumSize">
<size>
<width>420</width>
<height>320</height>
</size>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>11</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="ddWarningIcon" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>4</hsizetype>
<vsizetype>4</vsizetype>
<widget class="QLabel" name="ddWarningIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string comment="KDE::DoNotExtract" >Icon Placeholder, not in GUI</string>
<property name="text">
<string comment="KDE::DoNotExtract">Icon Placeholder, not in GUI</string>
</property>
<property name="wordWrap" >
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="textLabel1" >
<property name="text" >
<widget class="QLabel" name="textLabel1">
<property name="text">
<string>Are you sure that you want to remove these items?</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap" >
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="ddDeleteText" >
<property name="text" >
<string comment="KDE::DoNotExtract" >Deletion method placeholder, never shown to user.</string>
<widget class="QLabel" name="ddDeleteText">
<property name="text">
<string comment="KDE::DoNotExtract">Deletion method placeholder, never shown to user.</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap" >
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
......@@ -87,58 +86,42 @@
</layout>
</item>
<item>
<widget class="K3ListBox" name="ddFileList" >
<property name="toolTip" >
<string>List of files that are about to be deleted.</string>
</property>
<property name="whatsThis" >
<string>This is the list of items that are about to be deleted.</string>
</property>
<property name="selectionMode" >
<enum>Q3ListBox::NoSelection</enum>
<widget class="QListWidget" name="ddFileList">
<property name="selectionMode">
<enum>QAbstractItemView::NoSelection</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="ddNumFiles" >
<property name="text" >
<string comment="KDE::DoNotExtract" >Placeholder for number of files, not in GUI</string>
<widget class="QLabel" name="ddNumFiles">
<property name="text">
<string comment="KDE::DoNotExtract">Placeholder for number of files, not in GUI</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap" >
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ddShouldDelete" >
<property name="toolTip" >
<widget class="QCheckBox" name="ddShouldDelete">
<property name="toolTip">
<string>If checked, files will be permanently removed instead of being placed in the Trash Bin</string>
</property>
<property name="whatsThis" >
<string>&lt;qt>&lt;p>If this box is checked, files will be &lt;b>permanently removed&lt;/b> instead of being placed in the Trash Bin.&lt;/p>
<property name="whatsThis">
<string>&lt;qt&gt;&lt;p&gt;If this box is checked, files will be &lt;b&gt;permanently removed&lt;/b&gt; instead of being placed in the Trash Bin.&lt;/p&gt;
&lt;p>&lt;em>Use this option with caution&lt;/em>: Most filesystems are unable to reliably undelete deleted files.&lt;/p>&lt;/qt></string>
&lt;p&gt;&lt;em&gt;Use this option with caution&lt;/em&gt;: Most filesystems are unable to reliably undelete deleted files.&lt;/p&gt;&lt;/qt&gt;</string>
</property>
<property name="text" >
<property name="text">
<string>&amp;Delete files instead of moving them to the trash</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>K3ListBox</class>
<extends>Q3ListBox</extends>
<header>k3listbox.h</header>
</customwidget>
</customwidgets>
<includes>
<include location="local" >k3listbox.h</include>
</includes>
<resources/>
<connections>
<connection>
......@@ -147,11 +130,11 @@
<receiver>DeleteDialogBase</receiver>
<slot>slotShouldDelete(bool)</slot>
<hints>
<hint type="sourcelabel" >
<hint type="sourcelabel">
<x>20</x>
<y>20</y>
</hint>
<hint type="destinationlabel" >
<hint type="destinationlabel">
<x>20</x>
<y>20</y>
</hint>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment