#include "trace.h"
#include "settings.h"
#include "toolbuttonbox.h"
+#include "bookdb.h"
DevTools::DevTools(QWidget *parent): Dyalog(parent, false)
{
box->toggle(Trace::level);
connect(box, SIGNAL(buttonClicked(int)),
this, SLOT(onLevelButtonClicked(int)));
+ addStretch();
}
void DevTools::onClear()
{
if (QMessageBox::Yes ==
- QMessageBox::question(this, tr("Clear persistent data?"),
+ QMessageBox::question(this, tr("Clear persistent data"),
tr("Library and settings will be cleared, "
"application will be restarted. Continue?"),
QMessageBox::Yes | QMessageBox::No)) {
QSettings().clear();
+ BookDb::instance()->removeAll();
QApplication::exit(1000);
}
}