コード例 #1
0
ファイル: inquiry.cpp プロジェクト: cwarden/quasar
void
Inquiry::slotRefresh()
{
    _account->needsRefresh = true;
    _card->needsRefresh = true;
    _item->needsRefresh = true;
    slotTabChange();
}
コード例 #2
0
ファイル: mainwindow.cpp プロジェクト: dazzle50/QPlanner
MainWindow::MainWindow( QWidget* parent ) : QMainWindow( parent ), ui( new Ui::MainWindow )
{
  // initialise private variables
  m_undoview = nullptr;
  m_tabs     = new MainTabWidget();

  // setup ui for main window including central widget of tabs
  ui->setupUi( this );
  setCentralWidget( m_tabs );
  resize( 1200, 650 );

  // ensure menus and plan tab are kept up-to-date when current tab changes
  slotTabChange( m_tabs->currentIndex() );
  connect( m_tabs, SIGNAL(currentChanged(int)), this, SLOT(slotTabChange(int)),
           Qt::UniqueConnection );

  // update edit menu with undostack undo & redo actions
  setModels();
}