⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bctabcontrol.cpp

📁 Bookcase 是一个用于KDE的个人的书籍管理。它使用XML文件存储格式
💻 CPP
字号:
/***************************************************************************                             bctabcontrol.cpp                             -------------------    begin                : Sun Jan 6 2002    copyright            : (C) 2002 by Robby Stephenson    email                : robby@periapsis.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of version 2 of the GNU General Public License as  * *   published by the Free Software Foundation;                            * *                                                                         * ***************************************************************************/#include "bctabcontrol.h"#include <qobjectlist.h>BCTabControl::BCTabControl(QWidget* parent_, const char* name_/*=0*/)    : KTabCtl(parent_, name_) {}void BCTabControl::showTab(int i) {  KTabCtl::showTab(i);}// TODO: fix thisvoid BCTabControl::setFocusToChild(int tabNum_) {  //find the first focusable child in the visible tab  QPtrListIterator<QObject> it(*pages[tabNum_]->children());  QWidget* w;  for( ; it.current(); ++it) {    w = static_cast<QWidget*>(it.current());    // for some reason isFocusEnabled() crashes things//    if(w->isFocusEnabled()) {    if(w->focusPolicy() == QWidget::TabFocus        || w->focusPolicy() == QWidget::ClickFocus        || w->focusPolicy() == QWidget::StrongFocus) {      //w->setFocus();      break;    }  }}int BCTabControl::count() {  return tabs->count();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -