1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Bookmarks Import: Add option not to fetch icons

Closes #1018
This commit is contained in:
nowrep 2013-09-10 16:01:40 +02:00
parent 18baba4489
commit 48860aa398
2 changed files with 64 additions and 47 deletions

View File

@ -79,6 +79,13 @@ void BookmarksImportDialog::nextPage()
if (exportedOK()) { if (exportedOK()) {
m_currentPage++; m_currentPage++;
ui->stackedWidget->setCurrentIndex(m_currentPage); ui->stackedWidget->setCurrentIndex(m_currentPage);
if (!ui->fetchIcons->isChecked()) {
addExportedBookmarks();
close();
return;
}
startFetchingIcons(); startFetchingIcons();
} }
break; break;

View File

@ -110,24 +110,41 @@
</widget> </widget>
<widget class="QWidget" name="filePage"> <widget class="QWidget" name="filePage">
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0"> <item row="2" column="0" colspan="2">
<widget class="QLabel" name="iconLabel"> <widget class="QLabel" name="fileText1">
<property name="minimumSize"> <property name="wordWrap">
<size> <bool>true</bool>
<width>48</width>
<height>48</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="5" column="0" colspan="2">
<widget class="QLabel" name="importingFromLabel"/> <widget class="QLabel" name="fileText2"/>
</item>
<item row="8" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="6" column="1">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item> </item>
<item row="7" column="0" colspan="2"> <item row="7" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
@ -147,19 +164,6 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="8" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QLabel" name="standardDirLabel"> <widget class="QLabel" name="standardDirLabel">
<property name="textInteractionFlags"> <property name="textInteractionFlags">
@ -167,6 +171,25 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0">
<widget class="QLabel" name="iconLabel">
<property name="minimumSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="importingFromLabel"/>
</item>
<item row="1" column="1"> <item row="1" column="1">
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
<property name="orientation"> <property name="orientation">
@ -180,29 +203,16 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="2" column="0" colspan="2"> <item row="9" column="0" colspan="2">
<widget class="QLabel" name="fileText1"> <widget class="QCheckBox" name="fetchIcons">
<property name="wordWrap"> <property name="text">
<string>Try to fetch icons for all bookmakrs (may take a while)</string>
</property>
<property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0" colspan="2">
<widget class="QLabel" name="fileText2"/>
</item>
<item row="6" column="1">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="finalPage"> <widget class="QWidget" name="finalPage">