19 #include <QGridLayout> 20 #include <QStringListModel> 22 #include <QDialogButtonBox> 24 #include <QApplication> 28 #include "base/Debug.h" 33 #ifndef NO_PRINT_ACTIVITY 34 #define PRINT_ACTIVITY 1 39 setWindowTitle(tr(
"Activity Log"));
41 QGridLayout *layout =
new QGridLayout;
44 layout->addWidget(
new QLabel(tr(
"<p>Activity Log lists your interactions and other events within %1.</p>").arg(QApplication::applicationName())), 0, 0);
50 layout->setRowStretch(1, 10);
52 QDialogButtonBox *bb =
new QDialogButtonBox(QDialogButtonBox::Close);
53 connect(bb, SIGNAL(rejected()),
this, SLOT(hide()));
54 layout->addWidget(bb, 2, 0);
64 name = name.replace(
"&",
"");
67 SVDEBUG <<
"ActivityLog: " << name;
69 SVDEBUG <<
" (duplicate)";
79 name = tr(
"%1: %2").arg(QTime::currentTime().toString()).arg(name);
81 QModelIndex ix =
m_model->index(row, 0);
89 if (
m_model->rowCount() == 0 || !isVisible())
return;
QStringListModel * m_model
void activityHappened(QString)