* replaced toText in MessagesDialog QTextEdit with QTextBrowser to get use a scrollbar

* update little bit ProfileView(added function for load a image to picture label, added a Button for Edit Profile) 
* set context menu icon for Connect To Friend
* Fixed OnlineToaster's Picture Label Layout
* set for Make Friend a Header Image and Text

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@939 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-01-23 01:58:56 +00:00
parent 80a8b41d66
commit 643379aec7
13 changed files with 412 additions and 352 deletions

View file

@ -53,6 +53,8 @@ ProfileView::ProfileView(QWidget *parent)
// connect up the buttons.
connect(ui.closeButton, SIGNAL(clicked()), this, SLOT(closeView()));
connect(ui.profileditButton, SIGNAL(clicked()), this, SLOT(profileEdit()));
/* Hide platform specific features */
#ifdef Q_WS_WIN
@ -241,7 +243,14 @@ void ProfileView::update()
/* Image Context Menu */
void ProfileView::selectimagefile()
{
return;
QString fileName = QFileDialog::getOpenFileName(this, "Load File",
QDir::homePath(),
"Pictures (*.png *.xpm *.jpg)");
if(!fileName.isEmpty())
{
picture = QPixmap(fileName).scaled(108,108, Qt::IgnoreAspectRatio);
ui.photoLabel->setPixmap(picture);
}
}
void ProfileView::clearimage()