Changeset View
Changeset View
Standalone View
Standalone View
src/kmultitabbar.cpp
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Line(s) | 557 | { | |||
---|---|---|---|---|---|
561 | btn->setMenu(popup); | 561 | btn->setMenu(popup); | ||
562 | d->m_buttons.append(btn); | 562 | d->m_buttons.append(btn); | ||
563 | d->m_l->insertWidget(0, btn); | 563 | d->m_l->insertWidget(0, btn); | ||
564 | btn->show(); | 564 | btn->show(); | ||
565 | d->m_btnTabSep->show(); | 565 | d->m_btnTabSep->show(); | ||
566 | return 0; | 566 | return 0; | ||
567 | } | 567 | } | ||
568 | 568 | | |||
569 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 569 | #if KWIDGETSADDONS_BUILD_DEPRECATED_SINCE(5, 13) | ||
570 | int KMultiTabBar::appendButton(const QPixmap &pic, int id, QMenu *popup, const QString &x) | 570 | int KMultiTabBar::appendButton(const QPixmap &pic, int id, QMenu *popup, const QString &x) | ||
571 | { | 571 | { | ||
572 | // reuse icon variant | 572 | // reuse icon variant | ||
573 | return appendButton(QIcon(pic), id, popup, x); | 573 | return appendButton(QIcon(pic), id, popup, x); | ||
574 | } | 574 | } | ||
575 | #endif | 575 | #endif | ||
576 | 576 | | |||
577 | void KMultiTabBar::updateSeparator() | 577 | void KMultiTabBar::updateSeparator() | ||
Show All 14 Lines | |||||
592 | } | 592 | } | ||
593 | 593 | | |||
594 | int KMultiTabBar::appendTab(const QIcon &icon, int id, const QString &text) | 594 | int KMultiTabBar::appendTab(const QIcon &icon, int id, const QString &text) | ||
595 | { | 595 | { | ||
596 | d->m_internal->appendTab(icon, id, text); | 596 | d->m_internal->appendTab(icon, id, text); | ||
597 | return 0; | 597 | return 0; | ||
598 | } | 598 | } | ||
599 | 599 | | |||
600 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 600 | #if KWIDGETSADDONS_BUILD_DEPRECATED_SINCE(5, 13) | ||
601 | int KMultiTabBar::appendTab(const QPixmap &pic, int id, const QString &text) | 601 | int KMultiTabBar::appendTab(const QPixmap &pic, int id, const QString &text) | ||
602 | { | 602 | { | ||
603 | d->m_internal->appendTab(pic, id, text); | 603 | d->m_internal->appendTab(pic, id, text); | ||
604 | return 0; | 604 | return 0; | ||
605 | } | 605 | } | ||
606 | #endif | 606 | #endif | ||
607 | 607 | | |||
608 | KMultiTabBarButton *KMultiTabBar::button(int id) const | 608 | KMultiTabBarButton *KMultiTabBar::button(int id) const | ||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |