-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrote launcher to use a qt designer file. Removed some code related…
… to (#2338) dragging the launcher corner as it didnt seem to do anything. Cleaned up clang format suggestions.
- Loading branch information
1 parent
3553dea
commit af1b895
Showing
4 changed files
with
168 additions
and
115 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
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 |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>CaptureLauncher</class> | ||
<widget class="QDialog" name="CaptureLauncher"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>619</width> | ||
<height>148</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Capture Launcher</string> | ||
</property> | ||
<layout class="QHBoxLayout" name="horizontalLayout_4"> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
<item> | ||
<widget class="ImageLabel" name="imagePreview"> | ||
<property name="text"> | ||
<string>TextLabel</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<widget class="QLabel" name="modeLabel"> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>Capture Mode</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> | ||
</property> | ||
<property name="margin"> | ||
<number>-1</number> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout_3"> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="areaLabel"> | ||
<property name="text"> | ||
<string>Area:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="0"> | ||
<widget class="QLabel" name="delayLabel"> | ||
<property name="text"> | ||
<string>Delay:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QComboBox" name="captureType"> | ||
<property name="currentText"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="1"> | ||
<widget class="QSpinBox" name="delayTime"> | ||
<property name="suffix"> | ||
<string> seconds</string> | ||
</property> | ||
<property name="minimum"> | ||
<number>0</number> | ||
</property> | ||
<property name="maximum"> | ||
<number>999</number> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item alignment="Qt::AlignHCenter"> | ||
<widget class="QPushButton" name="launchButton"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Take new screenshot</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>ImageLabel</class> | ||
<extends>QLabel</extends> | ||
<header>imagelabel.h</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |