diff options
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); +} |
