fixed bugs with dataengine settings saving

This commit is contained in:
arcan1s
2015-05-02 01:40:20 +03:00
parent fd8f2127d9
commit 9a6b883905
6 changed files with 1508 additions and 6 deletions

View File

@ -50,7 +50,11 @@ AWKeys::AWKeys(QObject *parent)
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
debug = (debugEnv == QString("yes"));
dialog = new QDialog(0);
// signals
connect(this, SIGNAL(sourceAdded(QString)), this, SLOT(addSource(QString)));
// init dialog
dialog = new QDialog(nullptr);
widgetDialog = new QListWidget(dialog);
dialogButtons = new QDialogButtonBox(QDialogButtonBox::Open | QDialogButtonBox::Close,
Qt::Vertical, dialog);
@ -91,6 +95,7 @@ void AWKeys::initKeys(const QString pattern,
if (debug) qDebug() << PDEBUG;
// clear
extQuotes.clear();
extScripts.clear();
extUpgrade.clear();
graphicalItems.clear();
@ -213,9 +218,10 @@ bool AWKeys::addDevice(const QString source)
(source == QString("pkg")) ||
(source == QString("player")) ||
(source == QString("ps")) ||
(source == QString("update")))
(source == QString("update"))) {
return true;
else {
} else {
if (debug) qDebug() << PDEBUG << ":" << "Source" << source << "not found";
return false;
}
@ -846,6 +852,14 @@ void AWKeys::editItem(const QString type)
}
void AWKeys::addSource()
{
if (debug) qDebug() << PDEBUG;
}
void AWKeys::editItemButtonPressed(QAbstractButton *button)
{
if (debug) qDebug() << PDEBUG;