mirror of
				https://github.com/arcan1s/awesome-widgets.git
				synced 2025-11-03 22:33:42 +00:00 
			
		
		
		
	implement tryDelete() method
This commit is contained in:
		@ -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:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user