Skip to content

Commit

Permalink
rename Display to avoid conflict with X
Browse files Browse the repository at this point in the history
  • Loading branch information
ghewgill committed Dec 24, 2012
1 parent cd43023 commit 901465f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qt/hp15c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ void CalcWidget::keyPressEvent(QKeyEvent *event)
}
}

class Display: public QObject {
class CalcDisplay: public QObject {
Q_OBJECT
public:
Display();
CalcDisplay();
};

Display::Display()
CalcDisplay::CalcDisplay()
{
}

Expand Down Expand Up @@ -566,7 +566,7 @@ void HP15C::init()
script->globalObject().setProperty("setInterval", script->newFunction(setInterval));
script->globalObject().setProperty("clearInterval", script->newFunction(clearInterval));

QObject *disp = new Display();
QObject *disp = new CalcDisplay();
QScriptValue dispval = script->newQObject(disp);
dispval.setProperty("clear_digit", script->newFunction(clear_digit));
dispval.setProperty("clear_digits", script->newFunction(clear_digits));
Expand Down

0 comments on commit 901465f

Please sign in to comment.