diff options
author | Ken Moore <ken@ixsystems.com> | 2017-01-20 07:49:29 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-01-20 07:49:29 -0500 |
commit | a0572cf5076bbc20248018e98f0faee5a9a644da (patch) | |
tree | d0f0ee9f59eed4a9c7ec0f439735cf32266ff752 /src-qt5 | |
parent | Fix up some handling of the non-application .desktop file types: (diff) | |
download | lumina-a0572cf5076bbc20248018e98f0faee5a9a644da.tar.gz lumina-a0572cf5076bbc20248018e98f0faee5a9a644da.tar.bz2 lumina-a0572cf5076bbc20248018e98f0faee5a9a644da.zip |
Change the "edit" button in two ways:
1) Have it always open the new screenshot file with the "-select" dialog. (Many times editors use the same mimetypes as viewers, but viewer are set as the default).
2) Change the button text to "Open With..." so users know what it will do.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/MainUI.ui | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp index e15c2487..57314249 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp @@ -111,7 +111,7 @@ void MainUI::quicksave(){ QString path = savedir + QString( "Screenshot-%1.png" ).arg( lastScreenShot.toString("yyyy-MM-dd-hh-mm-ss") ); if(IMG->image().save(path, "png") ){ - QProcess::startDetached("lumina-open \""+path+"\""); + QProcess::startDetached("lumina-open -select \""+path+"\""); }else{ showSaveError(path); } diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui b/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui index 7b088bda..5e3aabb4 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>357</width> - <height>414</height> + <width>386</width> + <height>288</height> </rect> </property> <property name="sizePolicy"> @@ -45,7 +45,7 @@ </property> <property name="sizeHint" stdset="0"> <size> - <width>40</width> + <width>0</width> <height>20</height> </size> </property> @@ -84,7 +84,7 @@ </sizepolicy> </property> <property name="text"> - <string>Edit</string> + <string>Open With...</string> </property> <property name="toolButtonStyle"> <enum>Qt::ToolButtonTextBesideIcon</enum> @@ -210,8 +210,8 @@ <rect> <x>0</x> <y>0</y> - <width>315</width> - <height>342</height> + <width>344</width> + <height>216</height> </rect> </property> </widget> |