Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 42 lines (37 sloc) 1.093 kb
90ef298 @radekp Initial import
authored
1 /******************************************
2 ** Realized by
3 ** GeoKronos
4 ** geokronos.homelinux.org
5 ** geokronos@yahoo.com
6 ** and
7 ** Clepto
8 ** cleptoiii@yahoo.it
9 ** License: GPL
10 *******************************************/
11 #include "win_joinchan.h"
12 #include <QGridLayout>
13
14 win_joinchan::win_joinchan(irc_engine *ch, QWidget *parent) : QDialog(parent)
15 {
16 setWindowOpacity(0.90);
17 resize(380,50);
18 chat=ch;
19 setModal(true);
20 setWindowTitle(tr("Join channel"));
21 edt_chan=new QLineEdit(this);
22 //edt_chan->setGeometry(5,5,200,25);
23 QPushButton *btn_join=new QPushButton(this);
24 //btn_join->setGeometry(205,5,50,25);
25 btn_join->setMinimumWidth(100);
26 btn_join->setText(tr("Join"));
27
28 QGridLayout *grid=new QGridLayout(this); //CHANGED: added
29 grid->addWidget(edt_chan,0,0);
30 grid->addWidget(btn_join,0,1);
31
32 connect (btn_join,SIGNAL(clicked()),this,SLOT(join()));
33 };
34
35 void win_joinchan::join()
36 {
37 if (edt_chan->text()[0]!='#')
38 edt_chan->setText("#"+edt_chan->text());
39 chat->send(tr("join %1").arg(edt_chan->text()));
40 close();
41 };
Something went wrong with that request. Please try again.