Pencil2D Animation
Download Community News Docs Contribute

app/src/errordialog.cpp Source File

  • Main Page
  • Related Pages
  • Classes
  • Files
  •  
  • File List
Loading...
Searching...
No Matches
  • app
  • src
errordialog.cpp
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2012-2020 Matthew Chiawen Chang
5
6This program is free software; you can redistribute it and/or
7modify it under the terms of the GNU General Public License
8as published by the Free Software Foundation; version 2 of the License.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15*/
16
17#include "errordialog.h"
18#include "ui_errordialog.h"
19
20ErrorDialog::ErrorDialog( QString title, QString description, QString details, QWidget *parent ) :
21 QDialog( parent ),
22 ui(new Ui::ErrorDialog)
23{
24 ui->setupUi( this );
25
26 setWindowTitle( title );
27 ui->title->setText( QString( "<h3>%1</h3>" ).arg( title ) );
28 ui->description->setText( description );
29 if ( details.isEmpty() )
30 {
31 ui->details->setVisible( false );
32 }
33 else
34 {
35 ui->details->setText( QString( "<pre>%1</pre>" ).arg( details ) );
36 }
37}
38
39ErrorDialog::~ErrorDialog()
40{
41 delete ui;
42}
ErrorDialog
Definition: errordialog.h:28
QDialog
QString
QString::isEmpty
bool isEmpty() const const
QWidget
QWidget::setupUi
void setupUi(QWidget *widget)
Generated on Sun Sep 24 2023 19:39:34 for Pencil2D by doxygen 1.9.6 based on revision 1395c86cb17dafbb32de44cbabe1f4c58636468d