author | umopapisdn <umopapisdn> | 2002-09-28 22:30:24 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2002-09-28 22:30:24 (UTC) |
commit | 551661da944e2b93cff73317d6fb6eaffe5f7102 (patch) (unidiff) | |
tree | 29f415d63bad6727920e392efc3dfe201da80bb5 /noncore | |
parent | aa347496d408431d85ff2d7a2cf60479407620af (diff) | |
download | opie-551661da944e2b93cff73317d6fb6eaffe5f7102.zip opie-551661da944e2b93cff73317d6fb6eaffe5f7102.tar.gz opie-551661da944e2b93cff73317d6fb6eaffe5f7102.tar.bz2 |
User icons can be selected.
-rw-r--r-- | noncore/settings/usermanager/userdialog.cpp | 2 |
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 | |||
@@ -339,13 +339,13 @@ void UserDialog::accept() { | |||
339 | */ | 339 | */ |
340 | void UserDialog::clickedPicture() { | 340 | void 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(); |