mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fix bug on categories reload, and add compilation's informations in about dialog.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2011 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -69,6 +69,11 @@ QWidget *AboutQET::title() const {
|
||||
icon -> setPixmap(QET::Icons::QETOxygenLogo.pixmap(48, 48));
|
||||
// label "QElectroTech"
|
||||
QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech v" + QET::displayedVersion + "</span>");
|
||||
QString sCompilation = "<br>"+ tr("Compilation: ") + __DATE__+ " " + __TIME__;
|
||||
#ifdef __GNUC__
|
||||
sCompilation += " - GCC " + QString(__VERSION__);
|
||||
#endif
|
||||
title -> setText( title->text() + sCompilation);
|
||||
title -> setTextFormat(Qt::RichText);
|
||||
|
||||
QHBoxLayout *hlayout = new QHBoxLayout();
|
||||
|
||||
@@ -89,7 +89,7 @@ void FileElementsCollection::setFilePath(const QString &path) {
|
||||
Supprime le contenu en memoire de cette collection
|
||||
*/
|
||||
void FileElementsCollection::deleteContent() {
|
||||
delete root;
|
||||
if(!root) delete root;
|
||||
root = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user