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:
cfdev
2013-01-27 10:34:30 +00:00
parent 9bffba6c44
commit ccbda05dc1
2 changed files with 6 additions and 1 deletions

View File

@@ -69,6 +69,11 @@ QWidget *AboutQET::title() const {
icon -> setPixmap(QET::Icons::QETOxygenLogo.pixmap(48, 48)); icon -> setPixmap(QET::Icons::QETOxygenLogo.pixmap(48, 48));
// label "QElectroTech" // label "QElectroTech"
QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech v" + QET::displayedVersion + "</span>"); 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); title -> setTextFormat(Qt::RichText);
QHBoxLayout *hlayout = new QHBoxLayout(); QHBoxLayout *hlayout = new QHBoxLayout();

View File

@@ -89,7 +89,7 @@ void FileElementsCollection::setFilePath(const QString &path) {
Supprime le contenu en memoire de cette collection Supprime le contenu en memoire de cette collection
*/ */
void FileElementsCollection::deleteContent() { void FileElementsCollection::deleteContent() {
delete root; if(!root) delete root;
root = 0; root = 0;
} }