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/settings/usermanager/userdialog.cpp | |
parent | aa347496d408431d85ff2d7a2cf60479407620af (diff) | |
download | opie-551661da944e2b93cff73317d6fb6eaffe5f7102.zip opie-551661da944e2b93cff73317d6fb6eaffe5f7102.tar.gz opie-551661da944e2b93cff73317d6fb6eaffe5f7102.tar.bz2 |
User icons can be selected.
Diffstat (limited to 'noncore/settings/usermanager/userdialog.cpp') (more/less context) (ignore whitespace changes)
-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 | |||
@@ -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 | */ |
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(); |
352 | } | 352 | } |
353 | } | 353 | } |
354 | } | 354 | } |