emailuis/nmailui/src/nmattachmentpicker.cpp
changeset 66 084b5b1f02a7
parent 62 a8c646b56683
equal deleted inserted replaced
62:a8c646b56683 66:084b5b1f02a7
   154     if (mRequest) {
   154     if (mRequest) {
   155         mRequest->setSynchronous(false);
   155         mRequest->setSynchronous(false);
   156         if (args) {
   156         if (args) {
   157             mRequest->setArguments(*args);
   157             mRequest->setArguments(*args);
   158         }
   158         }
   159         // Set the title for the picker window
   159         // Set the title pane text for the picker window
   160         // Title setting disabled
   160 		// sub-title comes from the pickers
   161         //QVariant title(mTitle);
   161         QVariant title(mTitle);
   162         //XQRequestInfo info;
   162         XQRequestInfo info;
   163         //info.setInfo(XQINFO_KEY_WINDOW_TITLE, title);
   163         info.setInfo(XQINFO_KEY_WINDOW_TITLE, title);
   164         //mRequest->setInfo(info);
   164         mRequest->setInfo(info);
   165 
   165 
   166         connect(mRequest, SIGNAL(requestOk(const QVariant&)),
   166         connect(mRequest, SIGNAL(requestOk(const QVariant&)),
   167                 this, SIGNAL(attachmentsFetchOk(const QVariant&)));
   167                 this, SIGNAL(attachmentsFetchOk(const QVariant&)));
   168 
   168 
   169         connect(mRequest, SIGNAL(requestError(int, const QString&)),
   169         connect(mRequest, SIGNAL(requestError(int, const QString&)),
   182 
   182 
   183     QString itemText = listItem->text();
   183     QString itemText = listItem->text();
   184     if (itemText == hbTrId("txt_mail_list_photo")) {
   184     if (itemText == hbTrId("txt_mail_list_photo")) {
   185         fetchImage();
   185         fetchImage();
   186     }
   186     }
   187     else if (itemText == hbTrId("txt_mail_list_music")) {
   187     else if (itemText == hbTrId("txt_mail_list_sound")) {
   188         fetchAudio();
   188         fetchAudio();
   189 	}
   189 	}
   190     else if (itemText == hbTrId("txt_mail_list_video")) {
   190     else if (itemText == hbTrId("txt_mail_list_video")) {
   191         fetchVideo();
   191         fetchVideo();
   192 	}
   192 	}