Ejemplo n.º 1
0
        void HandleNewTab(QAction action)
        {
            var tab   = new EmptyTab();
            int index = m_Tabs.CurrentIndex + 1;

            index = m_Tabs.InsertTab(index, tab, tab.WindowIcon, "New Tab");
            m_Tabs.SetCurrentIndex(index);

            TabAdded();
        }
Ejemplo n.º 2
0
        void HandleNewTab(QAction action)
        {
            var tab = new EmptyTab();
            int index = m_Tabs.CurrentIndex + 1;
            index = m_Tabs.InsertTab(index, tab, tab.WindowIcon, "New Tab");
            m_Tabs.SetCurrentIndex(index);

            TabAdded();
        }