|
|
|
@ -141,7 +141,7 @@ TQString TabbedWidget::lowestAvailableCaption()
|
|
|
|
|
|
|
|
|
|
int TabbedWidget::removeItem(int session_id)
|
|
|
|
|
{
|
|
|
|
|
uint position = items.tqfindIndex(session_id);
|
|
|
|
|
uint position = items.findIndex(session_id);
|
|
|
|
|
|
|
|
|
|
items.remove(items.at(position));
|
|
|
|
|
areas.remove(areas.at(position));
|
|
|
|
@ -164,7 +164,7 @@ int TabbedWidget::removeItem(int session_id)
|
|
|
|
|
|
|
|
|
|
const TQString TabbedWidget::itemName(int session_id)
|
|
|
|
|
{
|
|
|
|
|
int position = items.tqfindIndex(session_id);
|
|
|
|
|
int position = items.findIndex(session_id);
|
|
|
|
|
|
|
|
|
|
if (position == -1) return 0;
|
|
|
|
|
|
|
|
|
@ -173,7 +173,7 @@ const TQString TabbedWidget::itemName(int session_id)
|
|
|
|
|
|
|
|
|
|
void TabbedWidget::renameItem(int session_id, const TQString& namep)
|
|
|
|
|
{
|
|
|
|
|
int position = items.tqfindIndex(session_id);
|
|
|
|
|
int position = items.findIndex(session_id);
|
|
|
|
|
|
|
|
|
|
if (position == -1) return;
|
|
|
|
|
|
|
|
|
@ -240,7 +240,7 @@ void TabbedWidget::slotResetEditedPosition()
|
|
|
|
|
|
|
|
|
|
int TabbedWidget::tabPositionForSessionId(int session_id)
|
|
|
|
|
{
|
|
|
|
|
return items.tqfindIndex(session_id);
|
|
|
|
|
return items.findIndex(session_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int TabbedWidget::sessionIdForTabPosition(int position)
|
|
|
|
@ -253,7 +253,7 @@ int TabbedWidget::sessionIdForTabPosition(int position)
|
|
|
|
|
|
|
|
|
|
void TabbedWidget::selectItem(int session_id)
|
|
|
|
|
{
|
|
|
|
|
int new_position = items.tqfindIndex(session_id);
|
|
|
|
|
int new_position = items.findIndex(session_id);
|
|
|
|
|
|
|
|
|
|
if (new_position != -1)
|
|
|
|
|
{
|
|
|
|
|