I had one global variable, declared before main:
long double curValue[36];
But removing it still left me with the same problem. The only thing that I can think of is that there is something in MainWindowImpl.h which is causing this problem, since thats the only thing that comes before main, as far as I can tell. I'm posting it here, if you wouldnt mind looking through it and telling me if it could be causing problems.
#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H
//
#include <QMainWindow>
#include "ui_mainwindow.h"
//
class MainWindowImpl
: public QMainWindow,
public Ui
::MainWindow{
Q_OBJECT
public:
MainWindowImpl
( QWidget * parent
= 0, Qt
::WFlags f
= 0 );
void refreshDisplay(int,long double curValue[36]);
private:
bool bLatch;
int maxValue[36];
bool bCheckable[36][2];
private slots:
public slots:
void bumpUp1();
void bumpUpRETURN1();
void bumpDn1();
void bumpDnRETURN1();
void linkLx1();
void slideLx1(int);
void bumpUp2();
void bumpUpRETURN2();
void bumpDn2();
void bumpDnRETURN2();
void linkLx2();
void slideLx2(int);
void bumpUp3();
void bumpUpRETURN3();
void bumpDn3();
void bumpDnRETURN3();
void linkLx3();
void slideLx3(int);
void bumpUp4();
void bumpUpRETURN4();
void bumpDn4();
void bumpDnRETURN4();
void linkLx4();
void slideLx4(int);
void bumpUp5();
void bumpUpRETURN5();
void bumpDn5();
void bumpDnRETURN5();
void linkLx5();
void slideLx5(int);
void bumpUp6();
void bumpUpRETURN6();
void bumpDn6();
void bumpDnRETURN6();
void linkLx6();
void slideLx6(int);
void bumpUp7();
void bumpUpRETURN7();
void bumpDn7();
void bumpDnRETURN7();
void linkLx7();
void slideLx7(int);
void bumpUp8();
void bumpUpRETURN8();
void bumpDn8();
void bumpDnRETURN8();
void linkLx8();
void slideLx8(int);
void pressGM();
void slideGM(int);
void checkLatch();
void options();
};
class linkSlide
{
private:
void slideLink(int,int);
public:
void slideFunct(int,int,int);
void linkFunct(int);
void slideGM(int);
};
class BumpLatch
{
public:
bool checkable;
int bumpUp(int,int);
int bumpUpRETURN(int);
int bumpDn(int,int);
int bumpDnRETURN(int);
void latch(bool);
};
#endif
#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H
//
#include <QMainWindow>
#include "ui_mainwindow.h"
//
class MainWindowImpl : public QMainWindow, public Ui::MainWindow
{
Q_OBJECT
public:
MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
void refreshDisplay(int,long double curValue[36]);
private:
bool bLatch;
int maxValue[36];
bool bCheckable[36][2];
private slots:
public slots:
void bumpUp1();
void bumpUpRETURN1();
void bumpDn1();
void bumpDnRETURN1();
void linkLx1();
void slideLx1(int);
void bumpUp2();
void bumpUpRETURN2();
void bumpDn2();
void bumpDnRETURN2();
void linkLx2();
void slideLx2(int);
void bumpUp3();
void bumpUpRETURN3();
void bumpDn3();
void bumpDnRETURN3();
void linkLx3();
void slideLx3(int);
void bumpUp4();
void bumpUpRETURN4();
void bumpDn4();
void bumpDnRETURN4();
void linkLx4();
void slideLx4(int);
void bumpUp5();
void bumpUpRETURN5();
void bumpDn5();
void bumpDnRETURN5();
void linkLx5();
void slideLx5(int);
void bumpUp6();
void bumpUpRETURN6();
void bumpDn6();
void bumpDnRETURN6();
void linkLx6();
void slideLx6(int);
void bumpUp7();
void bumpUpRETURN7();
void bumpDn7();
void bumpDnRETURN7();
void linkLx7();
void slideLx7(int);
void bumpUp8();
void bumpUpRETURN8();
void bumpDn8();
void bumpDnRETURN8();
void linkLx8();
void slideLx8(int);
void pressGM();
void slideGM(int);
void checkLatch();
void options();
};
class linkSlide
{
private:
void slideLink(int,int);
public:
void slideFunct(int,int,int);
void linkFunct(int);
void slideGM(int);
};
class BumpLatch
{
public:
bool checkable;
int bumpUp(int,int);
int bumpUpRETURN(int);
int bumpDn(int,int);
int bumpDnRETURN(int);
void latch(bool);
};
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks