mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
fix various warnings of unused variable, arguments...
This commit is contained in:
parent
200fe8ee4b
commit
9246b219c9
@ -264,6 +264,7 @@ void MFBfilter::createBandPassSchematic(QString &s)
|
||||
|
||||
void MFBfilter::createBandStopSchematic(QString &s)
|
||||
{
|
||||
Q_UNUSED(s);
|
||||
|
||||
}
|
||||
|
||||
|
@ -494,6 +494,7 @@ void SallenKey::createBandPassSchematic(QString &s)
|
||||
|
||||
void SallenKey::createBandStopSchematic(QString &s)
|
||||
{
|
||||
Q_UNUSED(s);
|
||||
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,8 @@
|
||||
MyWidget::MyWidget( QWidget *parent, const char *name )
|
||||
: QWidget( parent/*, name */)
|
||||
{
|
||||
Q_UNUSED(name);
|
||||
|
||||
setWindowTitle("Color Codes");
|
||||
|
||||
// icons are handled differently on OSX
|
||||
|
@ -579,6 +579,8 @@ void QucsTranscalc::setupTranslations () {
|
||||
its 'box'. */
|
||||
void QucsTranscalc::createPropItem (QGridLayout * parentGrid, TransValue * val,
|
||||
int box, QButtonGroup * group) {
|
||||
Q_UNUSED(group);
|
||||
|
||||
QRadioButton * r = NULL;
|
||||
QLabel * l;
|
||||
QLineEdit * e;
|
||||
|
@ -627,10 +627,11 @@ void Rect3DDiagram::calcLimits()
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
/// \todo check Right unused parameter
|
||||
int Rect3DDiagram::calcAxis(Axis *Axis, int x, int y,
|
||||
double xD, double phi, bool Right)
|
||||
{
|
||||
Q_UNUSED(Right);
|
||||
|
||||
double GridStep, corr, yD, stepD, GridNum, Expo;
|
||||
double xstepD, ystepD;
|
||||
|
||||
@ -719,10 +720,11 @@ int Rect3DDiagram::calcAxis(Axis *Axis, int x, int y,
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
/// \todo check Right unused parameter
|
||||
void Rect3DDiagram::createAxis(Axis *Axis, bool Right,
|
||||
int x1_, int y1_, int x2_, int y2_)
|
||||
{
|
||||
Q_UNUSED(Right);
|
||||
|
||||
DataX *pD;
|
||||
double phi, cos_phi, sin_phi;
|
||||
int x, y, z, w, valid, Index = 0;
|
||||
|
@ -316,6 +316,8 @@ void LoadDialog::slotChangeIcon()
|
||||
|
||||
bool LoadDialog::eventFilter(QObject *obj, QEvent *event)
|
||||
{
|
||||
Q_UNUSED(obj);
|
||||
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
// qDebug() << "type" << keyEvent->key() << fileView->count();
|
||||
|
@ -589,7 +589,7 @@ void QucsSettingsDialog::slotApply()
|
||||
changed = true;
|
||||
}
|
||||
|
||||
saveApplSettings(App); // also sets the small and large font
|
||||
saveApplSettings(); // also sets the small and large font
|
||||
|
||||
if(changed)
|
||||
{
|
||||
|
@ -313,9 +313,10 @@ void SimMessage::slotReadSpiceNetlist()
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
/// \todo check 'int status' unused parameter ?
|
||||
void SimMessage::slotFinishSpiceNetlist(int status )
|
||||
{
|
||||
Q_UNUSED(status);
|
||||
|
||||
if(makeSubcircuit)
|
||||
Stream << ".Def:End\n\n";
|
||||
|
||||
|
@ -132,7 +132,7 @@ bool loadSettings()
|
||||
|
||||
// #########################################################################
|
||||
// Saves the settings in the settings file.
|
||||
bool saveApplSettings(QucsApp *qucs)
|
||||
bool saveApplSettings()
|
||||
{
|
||||
QSettings settings ("qucs","qucs");
|
||||
|
||||
|
@ -83,7 +83,7 @@ extern QString lastDir; // to remember last directory for several dialogs
|
||||
extern QStringList qucsPathList;
|
||||
|
||||
bool loadSettings();
|
||||
bool saveApplSettings(QucsApp*);
|
||||
bool saveApplSettings();
|
||||
void qucsMessageOutput(QtMsgType type, const char *msg);
|
||||
|
||||
#endif // ifndef QUCS_MAIN_H
|
||||
|
@ -175,6 +175,8 @@ void OctaveWindow::slotSendCommand()
|
||||
|
||||
|
||||
bool OctaveWindow::eventFilter(QObject *obj, QEvent *event) {
|
||||
Q_UNUSED(obj);
|
||||
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
if (keyEvent->key() == Qt::Key_PageUp) {
|
||||
|
@ -2160,7 +2160,7 @@ void QucsApp::closeEvent(QCloseEvent* Event)
|
||||
QucsSettings.y=pos().y();
|
||||
QucsSettings.dx=size().width();
|
||||
QucsSettings.dy=size().height();
|
||||
saveApplSettings(this);
|
||||
saveApplSettings();
|
||||
|
||||
if(closeAllFiles()) {
|
||||
emit signalKillEmAll(); // kill all subprocesses
|
||||
|
Loading…
x
Reference in New Issue
Block a user