-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from dmitr-fedorov/feat/booksSelection
Added book selection for home page
- Loading branch information
Showing
10 changed files
with
296 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/presentation/homePage/MBookMultiSelectRightClickPopup.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Layouts | ||
import CustomComponents | ||
import QtQml.Models | ||
import Librum.globals | ||
import Librum.icons | ||
import Librum.style | ||
|
||
MRightClickMenu { | ||
id: root | ||
signal markAsReadClicked | ||
signal deleteClicked | ||
signal uninstallClicked | ||
|
||
implicitHeight: 108 // 32px per item | ||
|
||
objectModel: ObjectModel { | ||
|
||
MRightClickMenuItem { | ||
width: root.width | ||
imagePath: Icons.bookPopupMarkAsRead | ||
imageSize: 17 | ||
//: If this is too long in any language, use "Read" (past form) instead | ||
text: qsTr("Mark as read") | ||
|
||
onClicked: root.markAsReadClicked() | ||
} | ||
|
||
MRightClickMenuItem { | ||
width: root.width | ||
imagePath: Icons.bookPopupUninstall | ||
imageSize: 13 | ||
text: qsTr("Uninstall books") | ||
|
||
onClicked: root.uninstallClicked() | ||
} | ||
|
||
MRightClickMenuItem { | ||
width: root.width | ||
imagePath: Icons.bookPopupDelete | ||
imageSize: 16 | ||
text: qsTr("Delete books") | ||
|
||
onClicked: root.deleteClicked() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.