diff options
Diffstat (limited to 'src/fqterm/fqterm_wndmgr.cpp')
-rw-r--r-- | src/fqterm/fqterm_wndmgr.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/fqterm/fqterm_wndmgr.cpp b/src/fqterm/fqterm_wndmgr.cpp index 9cd6847..c1309c8 100644 --- a/src/fqterm/fqterm_wndmgr.cpp +++ b/src/fqterm/fqterm_wndmgr.cpp @@ -1,22 +1,4 @@ -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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; either version 2 of the License, or * - * (at your option) any later version. * - * * - * 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, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later ///////////////////////////////////////////////////////////////// //TODO: This class has too many overlap with MDI Area. @@ -222,7 +204,7 @@ FQTermWindow* FQTermWndMgr::newWindow( const FQTermParam ¶m, FQTermConfig* c | Qt::WindowSystemMenuHint)); subWindow->show(); } - tabBar_->setTabData(idx, qVariantFromValue((QObject*)window)); + tabBar_->setTabData(idx, QVariant::fromValue((QObject*)window)); FQ_VERIFY(connect(window, SIGNAL(destroyed(QObject*)), this ,SLOT(onSubWindowClosed(QObject*)))); FQ_VERIFY(connect(window, SIGNAL(resizeSignal(FQTermWindow*)), @@ -241,7 +223,7 @@ FQTermWindow* FQTermWndMgr::newWindow( const FQTermParam ¶m, FQTermConfig* c void FQTermWndMgr::onSubWindowClosed(QObject* obj) { for (int i = 0; i < tabBar_->count(); ++i) { - if (tabBar_->tabData(i) == qVariantFromValue(obj)) { + if (tabBar_->tabData(i) == QVariant::fromValue(obj)) { if (count() == 0) { termFrame_->enableMenuToolBar(false); } |