File: aboutwidget.cpp

package info (click to toggle)
csoundqt 1.1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 103,400 kB
  • sloc: cpp: 37,916; python: 2,070; xml: 2,034; sh: 341; makefile: 20; perl: 8
file content (45 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "aboutwidget.h"
#include "ui_aboutwidget.h"

AboutWidget::AboutWidget(QWidget *parent) :
	QDialog(parent),
	ui(new Ui::AboutWidget)
{
	ui->setupUi(this);
}

AboutWidget::~AboutWidget()
{
	delete ui;
}

void AboutWidget::setIntroText(QString text)
{
	ui->aboutTextEdit->setHtml(text);
}

void AboutWidget::setInstructions(QString text)
{
	ui->instructionsTextEdit->setHtml(text);
}

void AboutWidget::setStyleSheet(QString sheet)
{
	if (!sheet.isEmpty()) {
		ui->aboutTextEdit->setStyleSheet(sheet);
		ui->instructionsTextEdit->setStyleSheet(sheet);
	}
}

void AboutWidget::changeEvent(QEvent *e)
{
	QDialog::changeEvent(e);
	switch (e->type()) {
	case QEvent::LanguageChange:
		ui->retranslateUi(this);
		break;
	default:
		break;
	}
}