1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36: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()) {
m_currentPage++;
ui->stackedWidget->setCurrentIndex(m_currentPage);
if (!ui->fetchIcons->isChecked()) {
addExportedBookmarks();
close();
return;
}
startFetchingIcons();
}
break;

View File

@ -110,24 +110,41 @@
</widget>
<widget class="QWidget" name="filePage">
<layout class="QGridLayout" name="gridLayout_2">
<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>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="fileText1">
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="importingFromLabel"/>
<item row="5" column="0" colspan="2">
<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 row="7" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
@ -147,19 +164,6 @@
</item>
</layout>
</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">
<widget class="QLabel" name="standardDirLabel">
<property name="textInteractionFlags">
@ -167,6 +171,25 @@
</property>
</widget>
</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">
<spacer name="verticalSpacer_2">
<property name="orientation">
@ -180,29 +203,16 @@
</property>
</spacer>
</item>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="fileText1">
<property name="wordWrap">
<item row="9" column="0" colspan="2">
<widget class="QCheckBox" name="fetchIcons">
<property name="text">
<string>Try to fetch icons for all bookmakrs (may take a while)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</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>
</widget>
<widget class="QWidget" name="finalPage">