mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:46:03 +00:00
UI: ProgramEditDialog: Remove appInfoCache()
This commit is contained in:
parent
512930407b
commit
1754c101d6
@ -52,11 +52,6 @@ FirewallConf *ProgramEditDialog::conf() const
|
||||
return ctrl()->conf();
|
||||
}
|
||||
|
||||
AppInfoCache *ProgramEditDialog::appInfoCache() const
|
||||
{
|
||||
return IoC<AppInfoCache>();
|
||||
}
|
||||
|
||||
AppListModel *ProgramEditDialog::appListModel() const
|
||||
{
|
||||
return ctrl()->appListModel();
|
||||
@ -264,7 +259,7 @@ QLayout *ProgramEditDialog::setupAppNameLayout()
|
||||
if (appPath.isEmpty())
|
||||
return;
|
||||
|
||||
const QString appName = appInfoCache()->appName(appPath);
|
||||
const QString appName = IoC<AppInfoCache>()->appName(appPath);
|
||||
m_editName->setText(appName);
|
||||
};
|
||||
|
||||
|
@ -13,7 +13,6 @@ QT_FORWARD_DECLARE_CLASS(QLineEdit)
|
||||
QT_FORWARD_DECLARE_CLASS(QPushButton)
|
||||
QT_FORWARD_DECLARE_CLASS(QRadioButton)
|
||||
|
||||
class AppInfoCache;
|
||||
class CheckSpinCombo;
|
||||
class ConfManager;
|
||||
class FirewallConf;
|
||||
@ -31,7 +30,6 @@ public:
|
||||
FortManager *fortManager() const;
|
||||
ConfManager *confManager() const;
|
||||
FirewallConf *conf() const;
|
||||
AppInfoCache *appInfoCache() const;
|
||||
AppListModel *appListModel() const;
|
||||
|
||||
void initialize(const AppRow &appRow, const QVector<qint64> &appIdList);
|
||||
|
Loading…
Reference in New Issue
Block a user