mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 23:49:38 -05:00
Status combo box now returns current user status.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@532 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
607a017ca7
commit
1e6f925d67
@ -33,9 +33,14 @@ BlogDialog::BlogDialog(QWidget *parent)
|
||||
connect(boldBtn, SIGNAL(clicked()), this, SLOT(setFont()));
|
||||
connect(underlineBtn, SIGNAL(clicked()), this, SLOT(setFont()));
|
||||
connect(italicBtn, SIGNAL(clicked()), this, SLOT(setFont()));
|
||||
connect(statusBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setStatus()));
|
||||
|
||||
/* Current Font */
|
||||
mCurrentFont = QFont("Comic Sans MS", 8);
|
||||
|
||||
/* Current user status - online by default */
|
||||
QString currentStatus = "Online";
|
||||
|
||||
}
|
||||
|
||||
void BlogDialog::sendBlog()
|
||||
@ -60,6 +65,16 @@ void BlogDialog::setFont()
|
||||
lineEdit->setFont(mCurrentFont);
|
||||
lineEdit->setFocus();
|
||||
}
|
||||
|
||||
|
||||
void BlogDialog::setStatus()
|
||||
{
|
||||
currentStatus = statusBox->currentText();
|
||||
|
||||
/* for testing */
|
||||
/* msgText->append(currentStatus); */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -40,13 +40,20 @@ public:
|
||||
public slots:
|
||||
void sendBlog();
|
||||
void setFont();
|
||||
void setStatus();
|
||||
|
||||
private slots:
|
||||
/*nothing here yet */
|
||||
|
||||
private:
|
||||
|
||||
/* Current Font */
|
||||
QFont mCurrentFont;
|
||||
|
||||
/* Current status, online by default */
|
||||
QString currentStatus;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -623,7 +623,7 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QTreeWidget" name="msgSendList" >
|
||||
<widget class="QTreeWidget" name="userList" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Ignored" hsizetype="Ignored" >
|
||||
<horstretch>0</horstretch>
|
||||
@ -783,7 +783,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="comboBox" >
|
||||
<widget class="QComboBox" name="statusBox" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>600</x>
|
||||
@ -797,6 +797,9 @@
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="currentIndex" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Online</string>
|
||||
|
Loading…
Reference in New Issue
Block a user