Ignore:
Timestamp:
09/24/13 23:14:58 (9 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
54b69e2
Parents:
d942dc3
Message:

Now the application compiles for QT5.

Note that the location of the database in Linux has changed from
~/.local/share/data/Toastfreeware/ConfClerk
to
~/.local/share/Toastfreeware/ConfClerk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/eventdialog.cpp

    rd942dc3 r4b6ae6b  
    3939    QString info;
    4040    // title
    41     info.append(QString("<h1>%1</h1>\n").arg(Qt::escape(event.title())));
     41    info.append(QString("<h1>%1</h1>\n").arg(event.title().toHtmlEscaped()));
    4242
    4343    // persons
    4444    info += QString("<h2>%1</h2>\n").arg(tr("Persons"));
    4545    QStringList persons = event.persons();
    46     for (int i = 0; i != persons.size(); ++i) persons[i] = Qt::escape(persons[i]);
     46    for (int i = 0; i != persons.size(); ++i) persons[i] = persons[i].toHtmlEscaped();
    4747    info += QString("<p>%1</p>\n").arg(persons.join(", "));
    4848
     
    6464        if (url.isEmpty() || url == "http://") continue;
    6565        if (name.isEmpty()) name = url;
    66         info += QString("<li><a href=\"%1\">%2</a></li>\n").arg(Qt::escape(url), Qt::escape(name));
     66        info += QString("<li><a href=\"%1\">%2</a></li>\n").arg(url.toHtmlEscaped(), name.toHtmlEscaped());
    6767    }
    6868    info += QString("</ul>\n");
Note: See TracChangeset for help on using the changeset viewer.