mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 15:45:04 -04:00
-redesign the Compose New Message Dialog, again little bit more userfriendly.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@257 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
88ff3c8db7
commit
5c56857a99
2 changed files with 99 additions and 129 deletions
|
@ -31,6 +31,8 @@
|
|||
#include <QPoint>
|
||||
#include <QMouseEvent>
|
||||
#include <QPixmap>
|
||||
#include <QHeaderView>
|
||||
|
||||
|
||||
/** Constructor */
|
||||
ChanMsgDialog::ChanMsgDialog(bool msg, QWidget *parent, Qt::WFlags flags)
|
||||
|
@ -65,7 +67,10 @@ ChanMsgDialog::ChanMsgDialog(bool msg, QWidget *parent, Qt::WFlags flags)
|
|||
|
||||
/* hide the Tree +/- */
|
||||
ui.msgSendList -> setRootIsDecorated( false );
|
||||
|
||||
ui.msgFileList -> setRootIsDecorated( false );
|
||||
|
||||
/* to hide the header */
|
||||
//ui.msgSendList->header()->hide();
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
@ -122,7 +127,7 @@ void ChanMsgDialog::insertSendList()
|
|||
|
||||
/* remove old items ??? */
|
||||
sendWidget->clear();
|
||||
sendWidget->setColumnCount(6);
|
||||
sendWidget->setColumnCount(1);
|
||||
|
||||
QList<QTreeWidgetItem *> items;
|
||||
for(it = friends.begin(); it != friends.end(); it++)
|
||||
|
@ -141,18 +146,18 @@ void ChanMsgDialog::insertSendList()
|
|||
/* (0) Person */
|
||||
item -> setText(0, QString::fromStdString(it->second.name));
|
||||
/* () Org */
|
||||
item -> setText(1, QString::fromStdString(it->second.org));
|
||||
//item -> setText(1, QString::fromStdString(it->second.org));
|
||||
/* () Location */
|
||||
item -> setText(2, QString::fromStdString(it->second.loc));
|
||||
//item -> setText(2, QString::fromStdString(it->second.loc));
|
||||
/* () Country */
|
||||
item -> setText(3, QString::fromStdString(it->second.country));
|
||||
{
|
||||
//item -> setText(3, QString::fromStdString(it->second.country));
|
||||
/*{
|
||||
std::ostringstream out;
|
||||
out << it->second.id;
|
||||
item -> setText(4, QString::fromStdString(out.str()));
|
||||
}
|
||||
}*/
|
||||
|
||||
item -> setText(5, "Friend");
|
||||
item -> setText(1, "Friend");
|
||||
|
||||
item -> setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
|
||||
//item -> setCheckState(0, Qt::Checked);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue