mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -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(boldBtn, SIGNAL(clicked()), this, SLOT(setFont()));
|
||||||
connect(underlineBtn, SIGNAL(clicked()), this, SLOT(setFont()));
|
connect(underlineBtn, SIGNAL(clicked()), this, SLOT(setFont()));
|
||||||
connect(italicBtn, 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);
|
mCurrentFont = QFont("Comic Sans MS", 8);
|
||||||
|
|
||||||
|
/* Current user status - online by default */
|
||||||
|
QString currentStatus = "Online";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlogDialog::sendBlog()
|
void BlogDialog::sendBlog()
|
||||||
@ -62,5 +67,15 @@ void BlogDialog::setFont()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void BlogDialog::setStatus()
|
||||||
|
{
|
||||||
|
currentStatus = statusBox->currentText();
|
||||||
|
|
||||||
|
/* for testing */
|
||||||
|
/* msgText->append(currentStatus); */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,13 +40,20 @@ public:
|
|||||||
public slots:
|
public slots:
|
||||||
void sendBlog();
|
void sendBlog();
|
||||||
void setFont();
|
void setFont();
|
||||||
|
void setStatus();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
/*nothing here yet */
|
/*nothing here yet */
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
/* Current Font */
|
||||||
QFont mCurrentFont;
|
QFont mCurrentFont;
|
||||||
|
|
||||||
|
/* Current status, online by default */
|
||||||
|
QString currentStatus;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -623,7 +623,7 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<widget class="QTreeWidget" name="msgSendList" >
|
<widget class="QTreeWidget" name="userList" >
|
||||||
<property name="sizePolicy" >
|
<property name="sizePolicy" >
|
||||||
<sizepolicy vsizetype="Ignored" hsizetype="Ignored" >
|
<sizepolicy vsizetype="Ignored" hsizetype="Ignored" >
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@ -783,7 +783,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox" >
|
<widget class="QComboBox" name="statusBox" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
<x>600</x>
|
<x>600</x>
|
||||||
@ -797,6 +797,9 @@
|
|||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="currentIndex" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Online</string>
|
<string>Online</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user