mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-26 12:09:56 +00:00
system source, some code improvements
This commit is contained in:
@ -57,7 +57,7 @@ AWNoFormatter *AWNoFormatter::copy(const QString &_fileName, const int _number)
|
||||
{
|
||||
qCDebug(LOG_LIB) << "File" << _fileName << "with number" << _number;
|
||||
|
||||
AWNoFormatter *item = new AWNoFormatter(static_cast<QWidget *>(parent()), _fileName);
|
||||
auto *item = new AWNoFormatter(dynamic_cast<QWidget *>(parent()), _fileName);
|
||||
AWAbstractFormatter::copyDefaults(item);
|
||||
item->setNumber(_number);
|
||||
|
||||
|
Reference in New Issue
Block a user