Fix unintended rename of mask*

pull/1/head
Slávek Banko 12 years ago
parent 12b6ef5027
commit 74265a28e1

@ -71,11 +71,11 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name)
connect(hemitoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleHemi())); connect(hemitoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleHemi()));
mastdetoggle = new TQPushButton(hbox2); masktoggle = new TQPushButton(hbox2);
mastdetoggle->setText(mask ? i18n("Switch Masking Off") : masktoggle->setText(mask ? i18n("Switch Masking Off") :
i18n("Switch Masking On")); i18n("Switch Masking On"));
connect(mastdetoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask())); connect(masktoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask()));
topLayout->addWidget(vbox); topLayout->addWidget(vbox);
moon = new MoonWidget(page, "preview"); moon = new MoonWidget(page, "preview");
@ -107,7 +107,7 @@ void KMoonDlg::toggleHemi() {
void KMoonDlg::toggleMask() { void KMoonDlg::toggleMask() {
moon->setMask(!moon->mask()); moon->setMask(!moon->mask());
mask = moon->mask(); mask = moon->mask();
mastdetoggle->setText(mask ? i18n("Switch Masking Off") : masktoggle->setText(mask ? i18n("Switch Masking Off") :
i18n("Switch Masking On")); i18n("Switch Masking On"));
} }

@ -44,7 +44,7 @@ class KMoonDlg : public KDialogBase {
bool north; bool north;
bool mask; bool mask;
TQPushButton *hemitoggle; TQPushButton *hemitoggle;
TQPushButton *mastdetoggle; TQPushButton *masktoggle;
private slots: private slots:
void help(); void help();

Loading…
Cancel
Save