diff options
| author | Anton <anton@picapica> | 2021-06-29 02:13:06 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2021-06-29 02:13:06 +0400 |
| commit | 1a150eb79fc9c041622a63d51e9a1adfd47c8bcd (patch) | |
| tree | 3bdb401dec525a9d88201829485e50b6b8ae5009 /pica-client/callwindow.cpp | |
| parent | 2d1002443c245c54f92f4bee31cb2d0232ce15e7 (diff) | |
| download | pica-pica-1a150eb79fc9c041622a63d51e9a1adfd47c8bcd.tar.gz pica-pica-1a150eb79fc9c041622a63d51e9a1adfd47c8bcd.zip | |
add audiovideocallcontroller and callwindow, menu action to initiate call
Diffstat (limited to 'pica-client/callwindow.cpp')
| -rw-r--r-- | pica-client/callwindow.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pica-client/callwindow.cpp b/pica-client/callwindow.cpp new file mode 100644 index 0000000..d63f1b7 --- /dev/null +++ b/pica-client/callwindow.cpp @@ -0,0 +1,35 @@ +/* + (c) Copyright 2012 - 2020 Anton Sviridenko + https://picapica.im + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, version 3. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + +#include "callwindow.h" +#include <QHBoxLayout> +#include <QVBoxLayout> + +CallWindow::CallWindow(QByteArray peer_id) + : m_peer_id(peer_id) +{ + QHBoxLayout *lh = new QHBoxLayout(this); + QVBoxLayout *lv = new QVBoxLayout(this); + + pbCall = new QPushButton(tr("Call"), this); + pbHang = new QPushButton(tr("Hang Up"), this); + + lh->addWidget(pbCall, Qt::AlignRight); + lh->addWidget(pbHang, Qt::AlignLeft); + lh->addLayout(lv); + setLayout(lh); +} |
