Remove usage of Qt3 compatibility functions

This commit is contained in:
in3otd 2016-11-19 15:33:30 +01:00
parent 7b7fc05236
commit c0c249535e
2 changed files with 5 additions and 6 deletions

View File

@ -42,11 +42,10 @@
#include "qucsdoc.h"
#include "components/components.h"
LoadDialog::LoadDialog( QWidget* parent, const char* name, bool modal, Qt::WFlags fl )
: QDialog( parent, name, modal, fl )
LoadDialog::LoadDialog( QWidget* parent )
: QDialog( parent )
{
if ( !name )
setWindowTitle( tr( "Load Verilog-A symbols" ) );
setWindowTitle( tr( "Load Verilog-A symbols" ) );
app = 0l;
// initDialog();
}
@ -208,7 +207,7 @@ void LoadDialog::slotSymbolFileClicked(QListWidgetItem* item)
// qDebug() << "slotSymbolFileClicked" << Name << vaBitmap;
// check if icon exists, fall back to default
QString iconPath = QString(projDir.absFilePath(vaBitmap+".png"));
QString iconPath = QString(projDir.absoluteFilePath(vaBitmap+".png"));
QFile iconFile(iconPath);
if(iconFile.exists())

View File

@ -54,7 +54,7 @@ public:
Accept
};
LoadDialog(QWidget* p = 0, const char* n = 0, bool modal = true, Qt::WFlags fl = 0 );
LoadDialog(QWidget* p = 0 );
~LoadDialog();
void setApp(QucsApp *a);
void initDialog();