mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kdepasswd: remove unused and private PtyProcess::m_Command member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
de3036ebc0
commit
4f0ad0b1b2
2 changed files with 7 additions and 9 deletions
|
@ -44,8 +44,6 @@
|
||||||
|
|
||||||
#include "settings.h" // KConfigXT
|
#include "settings.h" // KConfigXT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: It would be nice if the widget were in a .ui
|
* TODO: It would be nice if the widget were in a .ui
|
||||||
*/
|
*/
|
||||||
|
@ -87,17 +85,17 @@ ChFaceDlg::ChFaceDlg(const QString& picsdir, QWidget *parent)
|
||||||
if (facesDir.exists()) {
|
if (facesDir.exists()) {
|
||||||
const QStringList picslist = facesDir.entryList( QDir::Files );
|
const QStringList picslist = facesDir.entryList( QDir::Files );
|
||||||
foreach (const QString &it, picslist) {
|
foreach (const QString &it, picslist) {
|
||||||
new QListWidgetItem(QIcon(picsdir + it), it.section('.',0,0), ui.m_FacesWidget);
|
new QListWidgetItem(QIcon(picsdir + it), it.section('.', 0, 0), ui.m_FacesWidget);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
facesDir.setPath( KCFGUserAccount::userFaceDir() );
|
facesDir.setPath(KCFGUserAccount::userFaceDir());
|
||||||
if (facesDir.exists()) {
|
if (facesDir.exists()) {
|
||||||
const QStringList picslist = facesDir.entryList( QDir::Files );
|
const QStringList picslist = facesDir.entryList(QDir::Files);
|
||||||
foreach (const QString &it, picslist) {
|
foreach (const QString &it, picslist) {
|
||||||
new QListWidgetItem(
|
new QListWidgetItem(
|
||||||
QIcon(KCFGUserAccount::userFaceDir() + it),
|
QIcon(KCFGUserAccount::userFaceDir() + it),
|
||||||
QString('/'+ it) == KCFGUserAccount::customFaceFile() ?
|
QString('/'+ it) == KCFGUserAccount::customFaceFile() ?
|
||||||
i18n("(Custom)") : it.section('.',0,0),
|
i18n("(Custom)") : it.section('.', 0, 0),
|
||||||
ui.m_FacesWidget
|
ui.m_FacesWidget
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -137,12 +135,13 @@ void ChFaceDlg::addCustomPixmap(const QString &imPath, bool saveCopy)
|
||||||
KonqOperations::COPY,
|
KonqOperations::COPY,
|
||||||
KUrl::List(
|
KUrl::List(
|
||||||
KUrl(userfaces.absolutePath() + "/.userinfo-tmp")),
|
KUrl(userfaces.absolutePath() + "/.userinfo-tmp")),
|
||||||
KUrl(userfaces.absolutePath() + '/' + QFileInfo(imPath).fileName().section('.',0,0)
|
KUrl(userfaces.absolutePath() + '/' + QFileInfo(imPath).fileName().section('.', 0, 0)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
#if 0
|
#if 0
|
||||||
if (!pix.save(userfaces.absolutePath() + '/' + imPath , "PNG"))
|
if (!pix.save(userfaces.absolutePath() + '/' + imPath , "PNG")) {
|
||||||
KMessageBox::sorry(this, i18n("There was an error saving the image:\n%1", userfaces.absolutePath()));
|
KMessageBox::sorry(this, i18n("There was an error saving the image:\n%1", userfaces.absolutePath()));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,6 @@ protected:
|
||||||
newlines to be printed after output. Set to @c false
|
newlines to be printed after output. Set to @c false
|
||||||
in constructor. @see setTerminal() */
|
in constructor. @see setTerminal() */
|
||||||
int m_Pid; /**< PID of child process */
|
int m_Pid; /**< PID of child process */
|
||||||
QByteArray m_Command; /**< Unused */
|
|
||||||
QByteArray m_Exit; /**< String to scan for in output that indicates child has exited. */
|
QByteArray m_Exit; /**< String to scan for in output that indicates child has exited. */
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Reference in a new issue