aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-info
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-08-01 15:43:14 -0400
committerKen Moore <ken@pcbsd.org>2016-08-01 15:43:14 -0400
commit7a42cee7e707c7cd6015256cda43ca55eee90408 (patch)
tree3986866b7e77071ed7c7b91cd28b5704a6786d06 /src-qt5/core/lumina-info
parentAdd in the possibility of a "nowatch" file/flag for lumina-open to avoid watc... (diff)
downloadlumina-7a42cee7e707c7cd6015256cda43ca55eee90408.tar.gz
lumina-7a42cee7e707c7cd6015256cda43ca55eee90408.tar.bz2
lumina-7a42cee7e707c7cd6015256cda43ca55eee90408.zip
Cleanup the sizing of the new QToolButtons a bit (ensure uniform sizes - does not touch screenshots since they are recessed by default).
Diffstat (limited to 'src-qt5/core/lumina-info')
-rw-r--r--src-qt5/core/lumina-info/MainUI.cpp2
-rw-r--r--src-qt5/core/lumina-info/MainUI.ui24
-rw-r--r--src-qt5/core/lumina-info/main.cpp3
3 files changed, 27 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-info/MainUI.cpp b/src-qt5/core/lumina-info/MainUI.cpp
index 32c161ad..98a4c160 100644
--- a/src-qt5/core/lumina-info/MainUI.cpp
+++ b/src-qt5/core/lumina-info/MainUI.cpp
@@ -48,7 +48,6 @@ void MainUI::updateUI(){
connect(ui->list_sponsors, SIGNAL(itemActivated(QListWidgetItem*)), this, SLOT(showSponsor(QListWidgetItem*)) );
connect(ui->label_proj_lead, SIGNAL(linkActivated(const QString&)), this, SLOT(LinkClicked(QString)) );
connect(ui->label_proj_contrib, SIGNAL(linkActivated(const QString&)), this, SLOT(LinkClicked(QString)) );
-
}
void MainUI::showQtInfo(){
@@ -63,6 +62,7 @@ void MainUI::showSponsor(QListWidgetItem *item){
void MainUI::LinkClicked(QString url){
QProcess::startDetached("lumina-open \""+url+"\"");
}
+
void MainUI::on_tool_bugs_clicked(){
LinkClicked(ui->tool_bugs->whatsThis());
}
diff --git a/src-qt5/core/lumina-info/MainUI.ui b/src-qt5/core/lumina-info/MainUI.ui
index 29c8759c..e1feab0a 100644
--- a/src-qt5/core/lumina-info/MainUI.ui
+++ b/src-qt5/core/lumina-info/MainUI.ui
@@ -76,6 +76,12 @@
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="1">
<widget class="QToolButton" name="tool_sources">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="whatsThis">
<string notr="true">https://github.com/trueos/lumina</string>
</property>
@@ -105,6 +111,12 @@
</item>
<item row="2" column="0">
<widget class="QToolButton" name="tool_website">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="whatsThis">
<string notr="true">http://lumina-desktop.org</string>
</property>
@@ -127,6 +139,12 @@
</item>
<item row="3" column="1">
<widget class="QToolButton" name="tool_bugs">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="whatsThis">
<string notr="true">https://bugs.pcbsd.org/projects/pcbsd</string>
</property>
@@ -245,6 +263,12 @@
</item>
<item row="3" column="0">
<widget class="QToolButton" name="tool_irc">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="whatsThis">
<string notr="true">https://webchat.freenode.net/?channels=%23lumina-desktop</string>
</property>
diff --git a/src-qt5/core/lumina-info/main.cpp b/src-qt5/core/lumina-info/main.cpp
index 38cae2ad..b8eb0dce 100644
--- a/src-qt5/core/lumina-info/main.cpp
+++ b/src-qt5/core/lumina-info/main.cpp
@@ -23,7 +23,8 @@ int main(int argc, char ** argv)
//Start the UI
MainUI w;
QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(slotSingleInstance()) );
- w.show();
+ //qDebug() << "Show Normal";
+ w.showNormal();
int retCode = a.exec();
return retCode;
bgstack15