summaryrefslogtreecommitdiff
path: root/noncore/settings/usermanager
Unidiff
Diffstat (limited to 'noncore/settings/usermanager') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/usermanager/userdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp
index c6b8a57..719dd1e 100644
--- a/noncore/settings/usermanager/userdialog.cpp
+++ b/noncore/settings/usermanager/userdialog.cpp
@@ -333,22 +333,22 @@ void UserDialog::accept() {
333 QDialog::accept(); 333 QDialog::accept();
334} 334}
335 335
336/** 336/**
337 * This slot is called when the usericon is clicked, this loads (should) the iconselector. 337 * This slot is called when the usericon is clicked, this loads (should) the iconselector.
338 * 338 *
339 */ 339 */
340void UserDialog::clickedPicture() { 340void UserDialog::clickedPicture() {
341 QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED,"/opt/QtPalmtop/pics"); 341 QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED,"/opt/QtPalmtop/pics");
342 if(!(filename.isEmpty())) { 342 if(!(filename.isEmpty())) {
343 userImage.reset(); 343 userImage.reset();
344 if(!(userImage.load(filename))) { 344 if(!(userImage.load(filename))) {
345 QMessageBox::information(0,"Sorry!","Icon selection not yet implemented.\nComming real soon now! (tm)\n"+filename); 345 QMessageBox::information(0,"Sorry!","That icon could not be loaded.\nLoading failed on: "+filename);
346 } else { 346 } else {
347 userImage=userImage.smoothScale(48,48); 347 userImage=userImage.smoothScale(48,48);
348 QPixmap *picture; 348 QPixmap *picture;
349 picture=(QPixmap *)picturePushButton->pixmap(); 349 picture=(QPixmap *)picturePushButton->pixmap();
350 picture->convertFromImage(userImage,0); 350 picture->convertFromImage(userImage,0);
351 picturePushButton->update(); 351 picturePushButton->update();
352 } 352 }
353 } 353 }
354} 354}