mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
implement tryDelete() method
This commit is contained in:
parent
5ec26c7747
commit
8460d07875
@ -321,6 +321,15 @@ void GraphicalItem::readConfiguration()
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::tryDelete()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
for (int i=0; i<dirs.count(); i++)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Remove file" << fileName << QFile::remove(fileName);
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::writeConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
@ -63,6 +63,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
void tryDelete();
|
||||
void writeConfiguration();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user