19 #include <QGridLayout> 20 #include <QStringListModel> 22 #include <QDialogButtonBox> 24 #include <QApplication> 28 #include "base/Debug.h" 37 setWindowTitle(tr(
"Activity Log"));
39 QGridLayout *layout =
new QGridLayout;
42 layout->addWidget(
new QLabel(tr(
"<p>Activity Log lists your interactions and other events within %1.</p>").arg(QApplication::applicationName())), 0, 0);
48 layout->setRowStretch(1, 10);
50 QDialogButtonBox *bb =
new QDialogButtonBox(QDialogButtonBox::Close);
51 connect(bb, SIGNAL(rejected()),
this, SLOT(hide()));
52 layout->addWidget(bb, 2, 0);
62 name = name.replace(
"&",
"");
65 cerr <<
"ActivityLog: " << name;
67 cerr <<
" (duplicate)";
77 name = tr(
"%1: %2").arg(QTime::currentTime().toString()).arg(name);
79 QModelIndex ix =
m_model->index(row, 0);
87 if (
m_model->rowCount() == 0 || !isVisible())
return;
QStringListModel * m_model
void activityHappened(QString)