summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mounthelper/dialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-06-16 22:55:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-07-09 10:19:34 +0900
commitd2da293eaecf382e2fd2b6517b90df62ae21e127 (patch)
treed19288a7ffe4b2f85cb5a3a136a2e834ae93c738 /tdeioslave/media/mounthelper/dialog.cpp
parentbd9913481762ac2dd5677479197c7ed4c2152d5e (diff)
downloadtdebase-d2da293eaecf382e2fd2b6517b90df62ae21e127.tar.gz
tdebase-d2da293eaecf382e2fd2b6517b90df62ae21e127.zip
Adjusted to new icon names and renamed media types related to encrypted drives in a better way.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/media/mounthelper/dialog.cpp')
-rw-r--r--tdeioslave/media/mounthelper/dialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tdeioslave/media/mounthelper/dialog.cpp b/tdeioslave/media/mounthelper/dialog.cpp
index ffa97b3b7..f2cdb6b53 100644
--- a/tdeioslave/media/mounthelper/dialog.cpp
+++ b/tdeioslave/media/mounthelper/dialog.cpp
@@ -23,41 +23,41 @@
#include "dialog.h"
Dialog::Dialog(TQString url, TQString iconName) :
- KDialogBase(NULL, "Dialog", true, "Decrypt Storage Device", (Cancel|User1), User1, false, KGuiItem(i18n("Decrypt"), "decrypted" ))
+ KDialogBase(NULL, "Dialog", true, "Unlock Storage Device", (Cancel|User1), User1, false, KGuiItem(i18n("Unlock"), "unlocked" ))
{
- decryptDialog = new DecryptDialog(this);
+ unlockDialog = new UnlockDialog(this);
- decryptDialog->errorBox->hide();
- decryptDialog->descLabel->setText(decryptDialog->descLabel->text().arg(url));
- decryptDialog->descLabel->adjustSize();
- decryptDialog->adjustSize();
+ unlockDialog->errorBox->hide();
+ unlockDialog->descLabel->setText(unlockDialog->descLabel->text().arg(url));
+ unlockDialog->descLabel->adjustSize();
+ unlockDialog->adjustSize();
enableButton( User1, false );
TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon(iconName, TDEIcon::NoGroup, TDEIcon::SizeLarge);
- decryptDialog->encryptedIcon->setPixmap( pixmap );
+ unlockDialog->encryptedIcon->setPixmap( pixmap );
- connect(decryptDialog->passwordEdit, TQT_SIGNAL (textChanged(const TQString &)), this, TQT_SLOT (slotPasswordChanged(const TQString &)));
+ connect(unlockDialog->passwordEdit, TQT_SIGNAL (textChanged(const TQString &)), this, TQT_SLOT (slotPasswordChanged(const TQString &)));
- setMainWidget(decryptDialog);
+ setMainWidget(unlockDialog);
}
Dialog::~Dialog()
{
- delete decryptDialog;
+ delete unlockDialog;
}
TQString Dialog::getPassword()
{
- return decryptDialog->passwordEdit->text();
+ return unlockDialog->passwordEdit->text();
}
void Dialog::slotDialogError(TQString errorMsg)
{
kdDebug() << __func__ << "(" << errorMsg << " )" << endl;
- decryptDialog->errorLabel->setText(TQString("<b>%1</b>").arg(errorMsg));
- decryptDialog->errorBox->show();
+ unlockDialog->errorLabel->setText(TQString("<b>%1</b>").arg(errorMsg));
+ unlockDialog->errorBox->show();
}
void Dialog::slotPasswordChanged(const TQString &text)