mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
* 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:
parent
80a8b41d66
commit
643379aec7
13 changed files with 412 additions and 352 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue