mirror of
https://github.com/brmlab/microview.git
synced 2025-06-08 11:34:01 +02:00
add icon
This commit is contained in:
parent
f6403176a7
commit
338dee788a
6 changed files with 33 additions and 3 deletions
BIN
software/icon.png
Normal file
BIN
software/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
|
@ -2,6 +2,7 @@
|
|||
#include "ui_mainwindow.h"
|
||||
#include <gst/gst.h>
|
||||
#include <gst/interfaces/xoverlay.h>
|
||||
#include <QMessageBox>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
|
@ -30,3 +31,15 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
MainWindow::~MainWindow()
|
||||
{
|
||||
}
|
||||
|
||||
void MainWindow::on_pushExit_clicked()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void MainWindow::on_pushAbout_clicked()
|
||||
{
|
||||
QMessageBox aboutBox(QMessageBox::NoIcon, "About µView", QString::fromUtf8("µView\n\nhackerspace brmlab - http://brmlab.cz/\n\nSee README for more info and COPYING for the license." ), QMessageBox::Ok, this);
|
||||
aboutBox.setIconPixmap(QPixmap(":/icons/icon.png"));
|
||||
aboutBox.exec();
|
||||
}
|
||||
|
|
|
@ -17,6 +17,9 @@ public:
|
|||
|
||||
private slots:
|
||||
|
||||
void on_pushExit_clicked();
|
||||
void on_pushAbout_clicked();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
<property name="windowTitle">
|
||||
<string>µView</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/icon.png</normaloff>:/icons/icon.png</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<widget class="VideoView" name="wgtVideo" native="true">
|
||||
<property name="geometry">
|
||||
|
@ -128,7 +132,7 @@
|
|||
<string>E&xit</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushAbout_2">
|
||||
<widget class="QPushButton" name="pushAbout">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>660</x>
|
||||
|
@ -159,9 +163,11 @@
|
|||
<tabstop>pushZoomIn</tabstop>
|
||||
<tabstop>pushZoomOut</tabstop>
|
||||
<tabstop>pushSnap</tabstop>
|
||||
<tabstop>pushAbout_2</tabstop>
|
||||
<tabstop>pushAbout</tabstop>
|
||||
<tabstop>pushExit</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -23,3 +23,6 @@ unix {
|
|||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += gstreamer-0.10 gstreamer-interfaces-0.10
|
||||
}
|
||||
|
||||
RESOURCES += \
|
||||
resources.qrc
|
||||
|
|
5
software/resources.qrc
Normal file
5
software/resources.qrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="icons">
|
||||
<file>icon.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
Loading…
Add table
Add a link
Reference in a new issue