mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-20 00:59:57 +00:00
system source, some code improvements
This commit is contained in:
@ -27,7 +27,6 @@
|
||||
|
||||
#include "awdebug.h"
|
||||
#include "stooqquotesprovider.h"
|
||||
#include "yahooquotesprovider.h"
|
||||
|
||||
|
||||
ExtQuotes::ExtQuotes(QWidget *_parent, const QString &_filePath)
|
||||
@ -75,7 +74,7 @@ ExtQuotes *ExtQuotes::copy(const QString &_fileName, const int _number)
|
||||
{
|
||||
qCDebug(LOG_LIB) << "File" << _fileName << "with number" << _number;
|
||||
|
||||
ExtQuotes *item = new ExtQuotes(static_cast<QWidget *>(parent()), _fileName);
|
||||
auto *item = new ExtQuotes(dynamic_cast<QWidget *>(parent()), _fileName);
|
||||
copyDefaults(item);
|
||||
item->setNumber(_number);
|
||||
item->setTicker(ticker());
|
||||
|
Reference in New Issue
Block a user