1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 09:20:38 +02:00

Converted public fields of MenuSetting to private.

This commit is contained in:
Maarten ter Huurne 2010-07-27 21:01:52 +02:00
parent 8f98a4b135
commit b718658bf1
2 changed files with 4 additions and 2 deletions

View File

@ -40,6 +40,8 @@ protected:
ButtonBox buttonBox; ButtonBox buttonBox;
string name, description;
public: public:
MenuSetting(GMenu2X *gmenu2x, const string &name, const string &description); MenuSetting(GMenu2X *gmenu2x, const string &name, const string &description);
virtual ~MenuSetting() {}; virtual ~MenuSetting() {};
@ -52,7 +54,7 @@ public:
virtual void drawSelected(int); virtual void drawSelected(int);
virtual bool edited() { return true; }; virtual bool edited() { return true; };
string name, description; const string &getDescription() { return description; }
}; };
#endif #endif

View File

@ -97,7 +97,7 @@ bool SettingsDialog::exec() {
gmenu2x->drawScrollBar(numRows,voices.size(),firstElement,clipRect.y+1,clipRect.h); gmenu2x->drawScrollBar(numRows,voices.size(),firstElement,clipRect.y+1,clipRect.h);
//description //description
writeSubTitle(voices[sel]->description); writeSubTitle(voices[sel]->getDescription());
gmenu2x->s->flip(); gmenu2x->s->flip();
voices[sel]->handleTS(); voices[sel]->handleTS();