Skip to content

Commit

Permalink
Unlock file support multiselection.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackINT3 committed Aug 11, 2020
1 parent 28728a7 commit 16dd2a6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/OpenArk/kernel/storage/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ void KernelStorage::InitFileUnlockView()
unlock_menu_->addAction(tr("Refresh"), this, [&] {});

connect(ui_->showHoldBtn, &QPushButton::clicked, [&] {
DISABLE_RECOVER();
ClearItemModelData(unlock_model_, 0);

QString file = ui_->inputPathEdit->text();
std::wstring path;
std::vector<HANDLE_ITEM> items;
Expand Down
25 changes: 24 additions & 1 deletion src/OpenArk/ui/kernel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
<item>
<widget class="QTabWidget" name="tabDriver">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="tabDrivers">
<attribute name="title">
Expand Down Expand Up @@ -192,6 +192,9 @@
<kerning>true</kerning>
</font>
</property>
<property name="indentation">
<number>5</number>
</property>
<property name="itemsExpandable">
<bool>true</bool>
</property>
Expand Down Expand Up @@ -525,6 +528,9 @@
<pointsize>9</pointsize>
</font>
</property>
<property name="indentation">
<number>5</number>
</property>
</widget>
</item>
</layout>
Expand Down Expand Up @@ -714,6 +720,9 @@
<layout class="QVBoxLayout" name="verticalLayout_15">
<item>
<widget class="QTreeView" name="unlockView">
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="indentation">
<number>5</number>
</property>
Expand Down Expand Up @@ -757,6 +766,13 @@
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
Expand All @@ -777,6 +793,13 @@
</property>
</spacer>
</item>
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="text">
Expand Down

0 comments on commit 16dd2a6

Please sign in to comment.