copyright label as single label

This commit is contained in:
mrbesen 2022-10-10 21:38:35 +02:00
parent 7cd1795155
commit ec4566f76a
Signed by untrusted user: MrBesen
GPG Key ID: 596B2350DCD67504
2 changed files with 78 additions and 101 deletions

View File

@ -7,7 +7,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
lolaa(conf.getConfig(), dd, std::bind(&MainWindow::onFail, this), std::bind(&MainWindow::onPosChange, this, std::placeholders::_1)) {
ui->setupUi(this);
ui->versionLabel->setText(tr("Version: %1").arg(LOLAA_VERSION));
ui->copyrightlabel->setText(ui->copyrightlabel->text().arg(LOLAA_VERSION));
lolaa.setOnRuneChangeFunc(std::bind(&RuneDisplay::setRunes, ui->runedisplay, std::placeholders::_1));

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>482</width>
<height>629</height>
<width>550</width>
<height>633</height>
</rect>
</property>
<property name="sizePolicy">
@ -31,7 +31,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>475</width>
<width>541</width>
<height>581</height>
</rect>
</property>
@ -54,23 +54,6 @@
<property name="spacing">
<number>9</number>
</property>
<item row="0" column="0">
<widget class="QCheckBox" name="mainswitch">
<property name="text">
<string>Mainswitch</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="enableAutoWrite">
<property name="toolTip">
<string>Write a Text as soon as you are in a champ select lobby.</string>
</property>
<property name="text">
<string>Auto Write</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="enableSmiteWarning">
<property name="toolTip">
@ -84,69 +67,6 @@
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="RuneDisplay" name="runedisplay" native="true"/>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="enableAll">
<property name="text">
<string>Enable LoL-Auto-Accept</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="copyright">
<property name="text">
<string>Developed by MrBesen</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QTextEdit" name="autoWriteText">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>80</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::WheelFocus</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
<property name="placeholderText">
<string>autowriteText</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QTabWidget" name="tabWidget">
<property name="tabPosition">
@ -220,16 +140,83 @@
</widget>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="homepagelink">
<item row="4" column="0" colspan="2">
<widget class="QTextEdit" name="autoWriteText">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>80</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::WheelFocus</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
<property name="placeholderText">
<string>autowriteText</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="enableAutoWrite">
<property name="toolTip">
<string>Write a Text as soon as you are in a champ select lobby.</string>
</property>
<property name="text">
<string>&lt;a href=&quot;https://git.mrbesen.de/MrBesen/lolautoaccept/releases&quot;&gt;Webseite&lt;/a&gt;</string>
<string>Auto Write</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="enableAll">
<property name="text">
<string>Enable LoL-Auto-Accept</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="mainswitch">
<property name="text">
<string>Mainswitch</string>
</property>
</widget>
</item>
<item row="0" column="1" rowspan="4">
<widget class="QLabel" name="copyrightlabel">
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Developed by MrBesen&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://git.mrbesen.de/MrBesen/lolautoaccept/releases&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#007af4;&quot;&gt;Webseite&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Version: %1&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
@ -239,18 +226,8 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="versionLabel">
<property name="text">
<string>Version: </string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<item row="6" column="0" colspan="2">
<widget class="RuneDisplay" name="runedisplay" native="true"/>
</item>
</layout>
</widget>
@ -260,7 +237,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>482</width>
<width>550</width>
<height>24</height>
</rect>
</property>