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:
rwoodruff91 2008-05-04 16:40:39 +00:00
parent 607a017ca7
commit 1e6f925d67
3 changed files with 27 additions and 2 deletions

View File

@ -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); */
}

View File

@ -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

View File

@ -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>