forked from linuxdeepin/deepin-image-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adjust openimagewidget and dialog layout
adjust openimagewidget and dialog layout. Log: fix some ui issue.
- Loading branch information
Showing
2 changed files
with
21 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. | ||
// SPDX-FileCopyrightText: 2023 - 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
import QtQuick 2.11 | ||
import QtQuick.Controls 2.4 | ||
import QtQuick.Layouts 1.11 | ||
import org.deepin.dtk 1.0 | ||
|
||
Control { | ||
id: control | ||
|
||
anchors.fill: parent | ||
|
||
DciIcon { | ||
id: openWidgetImage | ||
|
||
ColumnLayout { | ||
anchors.centerIn: parent | ||
name: "import_photo" | ||
sourceSize.height: 128 | ||
sourceSize.width: 128 | ||
theme: DTK.themeType | ||
} | ||
spacing: 10 | ||
|
||
RecommandButton { | ||
id: openFileBtn | ||
DciIcon { | ||
id: openWidgetImage | ||
|
||
Layout.alignment: Qt.AlignCenter | ||
name: "import_photo" | ||
sourceSize.height: 128 | ||
sourceSize.width: 128 | ||
theme: DTK.themeType | ||
} | ||
|
||
font.capitalization: Font.MixedCase | ||
height: 35 | ||
text: qsTr("Open Image") | ||
width: 300 | ||
RecommandButton { | ||
id: openFileBtn | ||
|
||
onClicked: stackView.openImageDialog() | ||
Layout.preferredHeight: 35 | ||
Layout.preferredWidth: 300 | ||
font.capitalization: Font.MixedCase | ||
text: qsTr("Open Image") | ||
|
||
anchors { | ||
left: openWidgetImage.left | ||
leftMargin: -86 | ||
top: openWidgetImage.bottom | ||
topMargin: 10 | ||
onClicked: stackView.openImageDialog() | ||
} | ||
} | ||
} |